pub struct Error {
pub code: ErrorCode,
pub message: String,
pub status_code: Option<u32>,
pub href: String,
pub cause: Option<Box<dyn Error + Send + Sync>>,
}
Expand description
An Ably error.
Fields
code: ErrorCode
The Ably error code.
message: String
Additional message information, where available.
status_code: Option<u32>
HTTP Status Code corresponding to this error, where applicable.
href: String
Link to Ably documenation with more information about the error.
cause: Option<Box<dyn Error + Send + Sync>>
Underlying error
Implementations
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Error for Error
impl Error for Error
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<DecodeError> for Error
impl From<DecodeError> for Error
sourcefn from(err: DecodeError) -> Self
fn from(err: DecodeError) -> Self
Converts to this type from the input type.
sourceimpl From<InvalidHeaderValue> for Error
impl From<InvalidHeaderValue> for Error
sourcefn from(_: InvalidHeaderValue) -> Self
fn from(_: InvalidHeaderValue) -> Self
Converts to this type from the input type.
sourceimpl From<ParseError> for Error
impl From<ParseError> for Error
sourcefn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more