pub struct AlertStream { /* private fields */ }Expand description
A filtered view of the alert broadcast channel.
Drops alerts that don’t match the subscriber’s filter bitmask.
Implementations§
Source§impl AlertStream
impl AlertStream
Sourcepub fn new(rx: Receiver<Alert>, filter: AlertCategory) -> Self
pub fn new(rx: Receiver<Alert>, filter: AlertCategory) -> Self
Wrap a broadcast receiver with a category filter.
Auto Trait Implementations§
impl Freeze for AlertStream
impl !RefUnwindSafe for AlertStream
impl Send for AlertStream
impl Sync for AlertStream
impl Unpin for AlertStream
impl UnsafeUnpin for AlertStream
impl !UnwindSafe for AlertStream
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