#[non_exhaustive]pub struct ShutdownAlreadyCompleted<T> {
pub shutdown_reason: T,
}
Expand description
Error returned when trying to delay a shutdown that has already completed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.shutdown_reason: T
The shutdown reason of the already completed shutdown.
Trait Implementations§
Source§impl<T: Debug> Debug for ShutdownAlreadyCompleted<T>
impl<T: Debug> Debug for ShutdownAlreadyCompleted<T>
Source§impl<T> Display for ShutdownAlreadyCompleted<T>
impl<T> Display for ShutdownAlreadyCompleted<T>
Source§impl<T: Debug> Error for ShutdownAlreadyCompleted<T>
impl<T: Debug> Error for ShutdownAlreadyCompleted<T>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<T> Freeze for ShutdownAlreadyCompleted<T>where
T: Freeze,
impl<T> RefUnwindSafe for ShutdownAlreadyCompleted<T>where
T: RefUnwindSafe,
impl<T> Send for ShutdownAlreadyCompleted<T>where
T: Send,
impl<T> Sync for ShutdownAlreadyCompleted<T>where
T: Sync,
impl<T> Unpin for ShutdownAlreadyCompleted<T>where
T: Unpin,
impl<T> UnwindSafe for ShutdownAlreadyCompleted<T>where
T: UnwindSafe,
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