pub struct ChunkWriter<T, W>where
W: ObjectWriter<T>,{
_phantom: PhantomData<T>,
delegate: W,
}
Expand description
Wrap an object writer so it can receive chunks.
Fields§
§_phantom: PhantomData<T>
§delegate: W
Implementations§
Source§impl<T, W> ChunkWriter<T, W>where
W: ObjectWriter<T>,
impl<T, W> ChunkWriter<T, W>where
W: ObjectWriter<T>,
pub fn new(delegate: W) -> ChunkWriter<T, W>
Trait Implementations§
Source§impl<T, W> ObjectWriter<Vec<T>> for ChunkWriter<T, W>where
W: ObjectWriter<T>,
impl<T, W> ObjectWriter<Vec<T>> for ChunkWriter<T, W>where
W: ObjectWriter<T>,
Auto Trait Implementations§
impl<T, W> Freeze for ChunkWriter<T, W>where
W: Freeze,
impl<T, W> RefUnwindSafe for ChunkWriter<T, W>where
W: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, W> Send for ChunkWriter<T, W>
impl<T, W> Sync for ChunkWriter<T, W>
impl<T, W> Unpin for ChunkWriter<T, W>
impl<T, W> UnwindSafe for ChunkWriter<T, W>where
W: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more