pub struct StreamSender<T> { /* private fields */ }Expand description
Sender side of a stream event channel.
Implementations§
Source§impl<T> StreamSender<T>
impl<T> StreamSender<T>
Sourcepub fn send(&self, event: StreamEvent<T>) -> SynthResult<bool>
pub fn send(&self, event: StreamEvent<T>) -> SynthResult<bool>
Sends a stream event.
Sourcepub fn send_data(&self, item: T) -> SynthResult<bool>
pub fn send_data(&self, item: T) -> SynthResult<bool>
Sends a data item.
Sourcepub fn stats(&self) -> ChannelStats
pub fn stats(&self) -> ChannelStats
Returns channel statistics.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for StreamSender<T>
impl<T> RefUnwindSafe for StreamSender<T>
impl<T> Send for StreamSender<T>where
T: Send,
impl<T> Sync for StreamSender<T>where
T: Send,
impl<T> Unpin for StreamSender<T>
impl<T> UnwindSafe for StreamSender<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