Struct tokio_stream::wrappers::BroadcastStream
source · [−]pub struct BroadcastStream<T> { /* private fields */ }
Available on crate feature
sync
only.Expand description
A wrapper around tokio::sync::broadcast::Receiver
that implements Stream
.
Implementations
Trait Implementations
sourceimpl<T> Debug for BroadcastStream<T>
impl<T> Debug for BroadcastStream<T>
sourceimpl<T: 'static + Clone + Send> Stream for BroadcastStream<T>
impl<T: 'static + Clone + Send> Stream for BroadcastStream<T>
type Item = Result<T, BroadcastStreamRecvError>
type Item = Result<T, BroadcastStreamRecvError>
Values yielded by the stream.
Auto Trait Implementations
impl<T> !RefUnwindSafe for BroadcastStream<T>
impl<T> Send for BroadcastStream<T>
impl<T> Sync for BroadcastStream<T>
impl<T> Unpin for BroadcastStream<T>
impl<T> !UnwindSafe for BroadcastStream<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more