pub struct Shutdown {
pub timeout: Option<Duration>,
}
Expand description
Shutdown request message sent by the Controller
to subscribed services.
A handler has to ensure that it doesn’t take longer than timeout
to resolve the future.
Ideally, open work is persisted or finished in an orderly manner but no new requests are
accepted anymore.
After the timeout the system will shut down regardless of what the receivers of this message do.
The return value is fully ignored. It is only Result
such that futures can be executed inside
a handler.
Fields§
§timeout: Option<Duration>
The timeout for this shutdown. None
indicates an immediate forced shutdown.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Shutdown
impl RefUnwindSafe for Shutdown
impl Send for Shutdown
impl Sync for Shutdown
impl Unpin for Shutdown
impl UnwindSafe for Shutdown
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)