pub struct Error {
pub summary: Cow<'static, str>,
pub details: Option<Cow<'static, str>>,
pub source: Option<Arc<dyn Error + Send + Sync + 'static>>,
pub kind: ErrorKind,
}
Fields§
§summary: Cow<'static, str>
§details: Option<Cow<'static, str>>
§source: Option<Arc<dyn Error + Send + Sync + 'static>>
§kind: ErrorKind
Implementations§
source§impl Error
impl Error
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<'a> From<&'a mut Error> for Error
impl<'a> From<&'a mut Error> for Error
source§fn from(kind: &'a mut Self) -> Self
fn from(kind: &'a mut Self) -> Self
Converts to this type from the input type.
source§impl<S, L> From<AppendError<S, L>> for Error
impl<S, L> From<AppendError<S, L>> for Error
source§fn from(error: AppendError<S, L>) -> Self
fn from(error: AppendError<S, L>) -> Self
Converts to this type from the input type.
source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
source§fn from(kind: DecodeError) -> Self
fn from(kind: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<Error> for BackendEvent
impl From<Error> for BackendEvent
source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
source§fn from(kind: FromUtf8Error) -> Self
fn from(kind: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl<T: Sync + Send + 'static + Debug> From<HandshakeError<T>> for Error
impl<T: Sync + Send + 'static + Debug> From<HandshakeError<T>> for Error
source§fn from(kind: HandshakeError<T>) -> Self
fn from(kind: HandshakeError<T>) -> Self
Converts to this type from the input type.
source§impl From<InvalidHeaderName> for Error
impl From<InvalidHeaderName> for Error
source§fn from(kind: InvalidHeaderName) -> Self
fn from(kind: InvalidHeaderName) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
source§fn from(kind: ParseIntError) -> Self
fn from(kind: ParseIntError) -> Self
Converts to this type from the input type.
source§impl<'i> From<ParsingError<&'i [u8]>> for Error
impl<'i> From<ParsingError<&'i [u8]>> for Error
source§fn from(val: ParsingError<&'i [u8]>) -> Self
fn from(val: ParsingError<&'i [u8]>) -> Self
Converts to this type from the input type.
source§impl<'i> From<ParsingError<&'i str>> for Error
impl<'i> From<ParsingError<&'i str>> for Error
source§fn from(val: ParsingError<&'i str>) -> Self
fn from(val: ParsingError<&'i str>) -> Self
Converts to this type from the input type.
source§impl<T> From<PoisonError<T>> for Error
impl<T> From<PoisonError<T>> for Error
source§fn from(kind: PoisonError<T>) -> Self
fn from(kind: PoisonError<T>) -> Self
Converts to this type from the input type.
source§impl From<ValidationError> for Error
impl From<ValidationError> for Error
source§fn from(error: ValidationError) -> Self
fn from(error: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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