pub struct ComponentFault { /* private fields */ }Expand description
A component-local fault produced by a handler.
Implementations§
Source§impl ComponentFault
impl ComponentFault
Sourcepub fn new<E>(error: E) -> ComponentFault
pub fn new<E>(error: E) -> ComponentFault
Construct a component fault from an error.
Sourcepub fn from_boxed(error: Box<dyn Error + Send>) -> ComponentFault
pub fn from_boxed(error: Box<dyn Error + Send>) -> ComponentFault
Construct a component fault from an already boxed error.
Sourcepub fn into_error(self) -> Box<dyn Error + Send>
pub fn into_error(self) -> Box<dyn Error + Send>
Consume this fault and return the underlying error.
Trait Implementations§
Source§impl Debug for ComponentFault
impl Debug for ComponentFault
Source§impl Display for ComponentFault
impl Display for ComponentFault
Source§impl Error for ComponentFault
impl Error for ComponentFault
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 ComponentFault
impl !RefUnwindSafe for ComponentFault
impl Send for ComponentFault
impl !Sync for ComponentFault
impl Unpin for ComponentFault
impl UnsafeUnpin for ComponentFault
impl !UnwindSafe for ComponentFault
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