pub struct TimerShutdownError(/* private fields */);Expand description
Error returned when a timer fails to shut down.
Implementations§
Source§impl TimerShutdownError
impl TimerShutdownError
Sourcepub fn message(message: impl Into<String>) -> TimerShutdownError
pub fn message(message: impl Into<String>) -> TimerShutdownError
Construct a timer shutdown error from a message.
Sourcepub fn from_debug(error: impl Debug) -> TimerShutdownError
pub fn from_debug(error: impl Debug) -> TimerShutdownError
Construct a timer shutdown error from a debug-only third-party error.
Trait Implementations§
Source§impl Debug for TimerShutdownError
impl Debug for TimerShutdownError
Source§impl Display for TimerShutdownError
impl Display for TimerShutdownError
Source§impl Error for TimerShutdownError
impl Error for TimerShutdownError
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 TimerShutdownError
impl ErrorCompat for TimerShutdownError
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 TimerShutdownError
impl From<&str> for TimerShutdownError
Source§fn from(message: &str) -> TimerShutdownError
fn from(message: &str) -> TimerShutdownError
Converts to this type from the input type.
Source§impl From<String> for TimerShutdownError
impl From<String> for TimerShutdownError
Source§fn from(message: String) -> TimerShutdownError
fn from(message: String) -> TimerShutdownError
Converts to this type from the input type.
Source§impl From<TimerShutdownError> for ShutdownError
impl From<TimerShutdownError> for ShutdownError
Source§fn from(source: TimerShutdownError) -> ShutdownError
fn from(source: TimerShutdownError) -> ShutdownError
Converts to this type from the input type.
Source§impl<__SnafuSource> From<__SnafuSource> for TimerShutdownErrorwhere
__SnafuSource: Into<TimerShutdownErrorInner>,
impl<__SnafuSource> From<__SnafuSource> for TimerShutdownErrorwhere
__SnafuSource: Into<TimerShutdownErrorInner>,
Source§fn from(error: __SnafuSource) -> TimerShutdownError
fn from(error: __SnafuSource) -> TimerShutdownError
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for TimerShutdownError
impl !RefUnwindSafe for TimerShutdownError
impl Send for TimerShutdownError
impl Sync for TimerShutdownError
impl Unpin for TimerShutdownError
impl UnsafeUnpin for TimerShutdownError
impl !UnwindSafe for TimerShutdownError
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