pub struct BoxedError {
inner: Box<dyn ErrorExt + Send + Sync>,
}
Expand description
An opaque boxed error based on errors that implement ErrorExt trait.
Fields§
§inner: Box<dyn ErrorExt + Send + Sync>
Implementations§
Trait Implementations§
source§impl Debug for BoxedError
impl Debug for BoxedError
source§impl Display for BoxedError
impl Display for BoxedError
source§impl Error for BoxedError
impl Error for BoxedError
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()
source§impl ErrorCompat for BoxedError
impl ErrorCompat for BoxedError
§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 ErrorExt for BoxedError
impl ErrorExt for BoxedError
source§fn status_code(&self) -> StatusCode
fn status_code(&self) -> StatusCode
Map this error to StatusCode.
source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Returns the error as Any so that it can be
downcast to a specific implementation.
fn output_msg(&self) -> Stringwhere
Self: Sized,
source§impl StackError for BoxedError
impl StackError for BoxedError
Auto Trait Implementations§
impl Freeze for BoxedError
impl !RefUnwindSafe for BoxedError
impl Send for BoxedError
impl Sync for BoxedError
impl Unpin for BoxedError
impl !UnwindSafe for BoxedError
Blanket Implementations§
§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
§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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request