pub struct Notifier { /* private fields */ }Expand description
A thread status notifier, that allows a thread to notify the Runtime of the current status of the thread.
Implementations§
Source§impl Notifier
impl Notifier
Sourcepub fn request_pause(&self)
pub fn request_pause(&self)
Notify the Runtime to request that the Runtime and all other registered thread pause processing.
Sourcepub fn request_resume(&self)
pub fn request_resume(&self)
Notify the Runtime to request that the Runtime and all other registered thread resume processing.
Sourcepub fn request_end(&self)
pub fn request_end(&self)
Notify the Runtime to request that the Runtime and all other registered thread end processing.
Sourcepub fn wait(&self)
pub fn wait(&self)
Notify the Runtime that the thread is waiting for new data or messages to process.
Sourcepub fn error(&self, err: RuntimeError)
pub fn error(&self, err: RuntimeError)
Notify the Runtime that the thread is in a permanent error state.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Notifier
impl RefUnwindSafe for Notifier
impl Send for Notifier
impl Sync for Notifier
impl Unpin for Notifier
impl UnwindSafe for Notifier
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