pub struct NotificationHandler { /* private fields */ }Expand description
Fans a Notification trigger out to all configured channels.
Implementations§
Source§impl NotificationHandler
impl NotificationHandler
pub fn new(sink: Box<dyn NotificationSink>) -> Self
Trait Implementations§
Source§impl TriggerHandler for NotificationHandler
impl TriggerHandler for NotificationHandler
fn handle(&self, ctx: &DispatchContext) -> Result<(), DispatchError>
Auto Trait Implementations§
impl !RefUnwindSafe for NotificationHandler
impl !UnwindSafe for NotificationHandler
impl Freeze for NotificationHandler
impl Send for NotificationHandler
impl Sync for NotificationHandler
impl Unpin for NotificationHandler
impl UnsafeUnpin for NotificationHandler
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