pub struct VecSink<T> { /* private fields */ }Expand description
A sink that collects items into a vector.
Implementations§
Trait Implementations§
Source§impl<T> Sink for VecSink<T>
impl<T> Sink for VecSink<T>
Source§fn write(&mut self, item: Self::Item) -> Result<(), SynthError>
fn write(&mut self, item: Self::Item) -> Result<(), SynthError>
Write a single item to the sink.
Source§fn write_batch(&mut self, items: Vec<Self::Item>) -> Result<(), SynthError>
fn write_batch(&mut self, items: Vec<Self::Item>) -> Result<(), SynthError>
Write a batch of items to the sink. Read more
Source§fn items_written(&self) -> u64
fn items_written(&self) -> u64
Get the number of items written.
Source§fn bytes_written(&self) -> Option<u64>
fn bytes_written(&self) -> Option<u64>
Get the number of bytes written (if applicable).
Auto Trait Implementations§
impl<T> Freeze for VecSink<T>
impl<T> RefUnwindSafe for VecSink<T>where
T: RefUnwindSafe,
impl<T> Send for VecSink<T>where
T: Send,
impl<T> Sync for VecSink<T>where
T: Sync,
impl<T> Unpin for VecSink<T>where
T: Unpin,
impl<T> UnwindSafe for VecSink<T>where
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