pub struct SupervisionError {
pub message: String,
}Expand description
Generic boxed-string error suitable for SupervisorOf impls that
don’t yet have a typed error story (e.g. wrapping a panic
payload). New code should prefer a domain-specific
#[derive(thiserror::Error)] enum instead.
Fields§
§message: StringImplementations§
Trait Implementations§
Source§impl Debug for SupervisionError
impl Debug for SupervisionError
Source§impl Display for SupervisionError
impl Display for SupervisionError
Source§impl Error for SupervisionError
impl Error for SupervisionError
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 Freeze for SupervisionError
impl RefUnwindSafe for SupervisionError
impl Send for SupervisionError
impl Sync for SupervisionError
impl Unpin for SupervisionError
impl UnsafeUnpin for SupervisionError
impl UnwindSafe for SupervisionError
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