pub struct TypedNotifier<M> { /* private fields */ }Implementations§
Source§impl<M> TypedNotifier<M>
impl<M> TypedNotifier<M>
Sourcepub fn new<S>(sender: S, message: M) -> TypedNotifier<M>where
S: Sender<M> + 'static,
pub fn new<S>(sender: S, message: M) -> TypedNotifier<M>where
S: Sender<M> + 'static,
Create a new notifier instance.
pub fn once(self) -> OnceNotifier<M>
pub fn notify_once(self) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for TypedNotifier<M>where
M: Freeze,
impl<M> !RefUnwindSafe for TypedNotifier<M>
impl<M> Send for TypedNotifier<M>where
M: Send,
impl<M> Sync for TypedNotifier<M>where
M: Sync,
impl<M> Unpin for TypedNotifier<M>where
M: Unpin,
impl<M> !UnwindSafe for TypedNotifier<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