Enum thrussh::HandlerError
source · pub enum HandlerError<E> {
Error(Error),
Handler(E),
}
Expand description
Errors including those coming from handler. These are not included in this crate’s “main” error type to allow for a simpler API (the “handler error” type cannot be inferred by the compiler in some functions).
Variants
Trait Implementations
sourceimpl<E: Debug> Debug for HandlerError<E>
impl<E: Debug> Debug for HandlerError<E>
sourceimpl<E: Error> Display for HandlerError<E>
impl<E: Error> Display for HandlerError<E>
sourceimpl<E: Error> Error for HandlerError<E>
impl<E: Error> Error for HandlerError<E>
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
sourceimpl<E> From<Error> for HandlerError<E>
impl<E> From<Error> for HandlerError<E>
sourcefn from(e: Error) -> HandlerError<E>
fn from(e: Error) -> HandlerError<E>
Converts to this type from the input type.
sourceimpl<E> From<Error> for HandlerError<E>
impl<E> From<Error> for HandlerError<E>
sourcefn from(e: Error) -> HandlerError<E>
fn from(e: Error) -> HandlerError<E>
Converts to this type from the input type.
sourceimpl<E> From<Error> for HandlerError<E>
impl<E> From<Error> for HandlerError<E>
sourcefn from(e: Error) -> HandlerError<E>
fn from(e: Error) -> HandlerError<E>
Converts to this type from the input type.
sourceimpl<E> From<Error> for HandlerError<E>
impl<E> From<Error> for HandlerError<E>
sourcefn from(e: Error) -> HandlerError<E>
fn from(e: Error) -> HandlerError<E>
Converts to this type from the input type.
sourceimpl<E> From<HandlerError<HandlerError<E>>> for HandlerError<E>
impl<E> From<HandlerError<HandlerError<E>>> for HandlerError<E>
sourcefn from(e: HandlerError<HandlerError<E>>) -> Self
fn from(e: HandlerError<HandlerError<E>>) -> Self
Converts to this type from the input type.
sourceimpl<E> From<Utf8Error> for HandlerError<E>
impl<E> From<Utf8Error> for HandlerError<E>
sourcefn from(e: Utf8Error) -> HandlerError<E>
fn from(e: Utf8Error) -> HandlerError<E>
Converts to this type from the input type.
Auto Trait Implementations
impl<E> !RefUnwindSafe for HandlerError<E>
impl<E> Send for HandlerError<E>where
E: Send,
impl<E> Sync for HandlerError<E>where
E: Sync,
impl<E> Unpin for HandlerError<E>where
E: Unpin,
impl<E> !UnwindSafe for HandlerError<E>
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