pub struct StreamReceiver { /* private fields */ }Expand description
Receiver half for streaming handlers.
Wraps mpsc::Receiver<String> and holds a CancellationToken guard.
When this receiver is dropped, the CancellationToken is automatically
cancelled, signalling the handler that the consumer has disconnected.
Implementations§
Trait Implementations§
Source§impl Debug for StreamReceiver
impl Debug for StreamReceiver
Auto Trait Implementations§
impl Freeze for StreamReceiver
impl RefUnwindSafe for StreamReceiver
impl Send for StreamReceiver
impl Sync for StreamReceiver
impl Unpin for StreamReceiver
impl UnsafeUnpin for StreamReceiver
impl UnwindSafe for StreamReceiver
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