pub struct ShutdownServiceMessage {}
Expand description
The ShutdownServiceMessage
is supported by all services. It terminates the
thread. No other message in the queue will be processed.
The service will receive this message and can do something before shutting
down.
Trait Implementations§
Source§impl<S: Service> Handler<ShutdownServiceMessage> for S
impl<S: Service> Handler<ShutdownServiceMessage> for S
fn deliver(&mut self, _m: ShutdownServiceMessage)
Auto Trait Implementations§
impl Freeze for ShutdownServiceMessage
impl RefUnwindSafe for ShutdownServiceMessage
impl Send for ShutdownServiceMessage
impl Sync for ShutdownServiceMessage
impl Unpin for ShutdownServiceMessage
impl UnwindSafe for ShutdownServiceMessage
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