pub enum ClientError<RE: Display, WE: Display> {
Transport(TransportError<RE, WE>),
Failed {
status: u8,
message: String,
},
}Available on crate feature
client only.Variants§
Trait Implementations§
Source§impl<RE: Display, WE: Display> Display for ClientError<RE, WE>where
TransportError<RE, WE>: Display,
impl<RE: Display, WE: Display> Display for ClientError<RE, WE>where
TransportError<RE, WE>: Display,
Source§impl<RE: Display, WE: Display> Error for ClientError<RE, WE>
impl<RE: Display, WE: Display> Error for ClientError<RE, WE>
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<RE: Display, WE: Display> From<TransportError<RE, WE>> for ClientError<RE, WE>
impl<RE: Display, WE: Display> From<TransportError<RE, WE>> for ClientError<RE, WE>
Source§fn from(source: TransportError<RE, WE>) -> Self
fn from(source: TransportError<RE, WE>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<RE, WE> Freeze for ClientError<RE, WE>
impl<RE, WE> RefUnwindSafe for ClientError<RE, WE>where
RE: RefUnwindSafe,
WE: RefUnwindSafe,
impl<RE, WE> Send for ClientError<RE, WE>
impl<RE, WE> Sync for ClientError<RE, WE>
impl<RE, WE> Unpin for ClientError<RE, WE>
impl<RE, WE> UnwindSafe for ClientError<RE, WE>where
RE: UnwindSafe,
WE: UnwindSafe,
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