pub enum ClientExitError<T> {
NotFound,
ServerFail,
FailedDecode(Error),
Transport(T),
}
Expand description
Automatically generated error type that ClientExitClient instances return from its methods
Variants§
Trait Implementations§
source§impl<T: Debug> Debug for ClientExitError<T>
impl<T: Debug> Debug for ClientExitError<T>
source§impl<T> Display for ClientExitError<T>where
T: Display,
impl<T> Display for ClientExitError<T>where T: Display,
source§impl<T> Error for ClientExitError<T>where
Self: Debug + Display,
impl<T> Error for ClientExitError<T>where Self: Debug + Display,
1.30.0 · 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()
Auto Trait Implementations§
impl<T> !RefUnwindSafe for ClientExitError<T>
impl<T> Send for ClientExitError<T>where T: Send,
impl<T> Sync for ClientExitError<T>where T: Sync,
impl<T> Unpin for ClientExitError<T>where T: Unpin,
impl<T> !UnwindSafe for ClientExitError<T>
Blanket Implementations§
§impl<T> AsFail for Twhere
T: Fail,
impl<T> AsFail for Twhere T: Fail,
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<E> Fail for Ewhere
E: Error + Send + Sync + 'static,
impl<E> Fail for Ewhere E: Error + Send + Sync + 'static,
§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read more