Struct rex::notification::NotificationManager
source · pub struct NotificationManager<M>where
M: RexMessage,{ /* private fields */ }Expand description
NotificationManager routes [Notifications] to their desired
destination
Implementations§
source§impl<M> NotificationManager<M>where
M: RexMessage,
impl<M> NotificationManager<M>where
M: RexMessage,
pub fn new(processors: &[&dyn NotificationProcessor<M>]) -> Self
pub fn init(&self) -> UnboundedSender<Notification<M>>
Auto Trait Implementations§
impl<M> !RefUnwindSafe for NotificationManager<M>
impl<M> Send for NotificationManager<M>
impl<M> Sync for NotificationManager<M>
impl<M> Unpin for NotificationManager<M>
impl<M> !UnwindSafe for NotificationManager<M>
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