#[non_exhaustive]pub enum RuntimeShutdownError {
LoopTimeout,
LoopJoinError(JoinError),
ExecutorTimeout,
ExecutorJoinError(JoinError),
}Expand description
Errors from MeshOsRuntime::shutdown.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LoopTimeout
The loop task didn’t exit within the shutdown timeout.
LoopJoinError(JoinError)
The loop task panicked or was cancelled.
ExecutorTimeout
The executor task didn’t exit within the shutdown timeout (despite the source channel being dropped).
ExecutorJoinError(JoinError)
The executor task panicked or was cancelled.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeShutdownError
impl !UnwindSafe for RuntimeShutdownError
impl Freeze for RuntimeShutdownError
impl Send for RuntimeShutdownError
impl Sync for RuntimeShutdownError
impl Unpin for RuntimeShutdownError
impl UnsafeUnpin for RuntimeShutdownError
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