pub struct CollectionSink<T> { /* private fields */ }Expand description
A sink that collects elements into a Vec
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for CollectionSink<T>
impl<T: Clone> Clone for CollectionSink<T>
Source§fn clone(&self) -> CollectionSink<T>
fn clone(&self) -> CollectionSink<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Default> Default for CollectionSink<T>
impl<T: Default> Default for CollectionSink<T>
Source§fn default() -> CollectionSink<T>
fn default() -> CollectionSink<T>
Returns the “default value” for a type. Read more
Source§impl<T> Sink<T> for CollectionSink<T>
impl<T> Sink<T> for CollectionSink<T>
Source§fn init<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = StreamResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn init<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = StreamResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Initialize the sink
Source§fn write<'life0, 'async_trait>(
&'life0 mut self,
record: Record<T>,
) -> Pin<Box<dyn Future<Output = StreamResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn write<'life0, 'async_trait>(
&'life0 mut self,
record: Record<T>,
) -> Pin<Box<dyn Future<Output = StreamResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Write a record to the sink
Auto Trait Implementations§
impl<T> Freeze for CollectionSink<T>
impl<T> RefUnwindSafe for CollectionSink<T>
impl<T> Send for CollectionSink<T>where
T: Send,
impl<T> Sync for CollectionSink<T>where
T: Send,
impl<T> Unpin for CollectionSink<T>
impl<T> UnwindSafe for CollectionSink<T>
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