pub struct SystemComponentsShutdownError(/* private fields */);Expand description
Error returned when system components fail to shut down.
Implementations§
Source§impl SystemComponentsShutdownError
impl SystemComponentsShutdownError
Sourcepub fn message(message: impl Into<String>) -> SystemComponentsShutdownError
pub fn message(message: impl Into<String>) -> SystemComponentsShutdownError
Construct a system-components shutdown error from a message.
Trait Implementations§
Source§impl Error for SystemComponentsShutdownError
impl Error for SystemComponentsShutdownError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for SystemComponentsShutdownError
impl ErrorCompat for SystemComponentsShutdownError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl From<&str> for SystemComponentsShutdownError
impl From<&str> for SystemComponentsShutdownError
Source§fn from(message: &str) -> SystemComponentsShutdownError
fn from(message: &str) -> SystemComponentsShutdownError
Converts to this type from the input type.
Source§impl From<String> for SystemComponentsShutdownError
impl From<String> for SystemComponentsShutdownError
Source§fn from(message: String) -> SystemComponentsShutdownError
fn from(message: String) -> SystemComponentsShutdownError
Converts to this type from the input type.
Source§impl From<SystemComponentsShutdownError> for ShutdownError
impl From<SystemComponentsShutdownError> for ShutdownError
Source§fn from(source: SystemComponentsShutdownError) -> ShutdownError
fn from(source: SystemComponentsShutdownError) -> ShutdownError
Converts to this type from the input type.
Source§impl<__SnafuSource> From<__SnafuSource> for SystemComponentsShutdownErrorwhere
__SnafuSource: Into<SystemComponentsShutdownErrorKind>,
impl<__SnafuSource> From<__SnafuSource> for SystemComponentsShutdownErrorwhere
__SnafuSource: Into<SystemComponentsShutdownErrorKind>,
Source§fn from(error: __SnafuSource) -> SystemComponentsShutdownError
fn from(error: __SnafuSource) -> SystemComponentsShutdownError
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for SystemComponentsShutdownError
impl !RefUnwindSafe for SystemComponentsShutdownError
impl Send for SystemComponentsShutdownError
impl Sync for SystemComponentsShutdownError
impl Unpin for SystemComponentsShutdownError
impl UnsafeUnpin for SystemComponentsShutdownError
impl !UnwindSafe for SystemComponentsShutdownError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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