pub enum ClientError {
Io {
kind: &'static str,
err: Error,
},
Custom {
kind: &'static str,
msg: String,
},
}
Expand description
client error
Variants§
Implementations§
Trait Implementations§
Source§impl Debug for ClientError
impl Debug for ClientError
Source§impl Display for ClientError
impl Display for ClientError
Source§impl Error for ClientError
impl Error for ClientError
fn with_kind(self, kind: &'static str) -> Self
Source§fn custom<T: Display>(msg: T) -> Self
fn custom<T: Display>(msg: T) -> Self
Raised when there is general error when decoding a type.
Source§fn invalid_type<U, E>(unexp: U, exp: E) -> Self
fn invalid_type<U, E>(unexp: U, exp: E) -> Self
Raised when receives a type different from what it was expecting.
Source§fn invalid_value<U, E>(unexp: U, exp: E) -> Self
fn invalid_value<U, E>(unexp: U, exp: E) -> Self
Raised when receives a value of the right type but that
is wrong for some other reason.
Source§fn invalid_length<E>(len: usize, exp: E) -> Selfwhere
E: Display,
fn invalid_length<E>(len: usize, exp: E) -> Selfwhere
E: Display,
Raised when the input data contains too many
or too few elements.
Source§impl From<Error> for ClientError
impl From<Error> for ClientError
Source§impl From<PathError> for ClientError
impl From<PathError> for ClientError
Source§impl Error for ClientError
impl Error for ClientError
1.30.0 · 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 ClientError
impl !RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl !UnwindSafe for ClientError
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