Struct rpc_router::HandlerError
source · pub struct HandlerError { /* private fields */ }
Implementations§
source§impl HandlerError
impl HandlerError
source§impl HandlerError
impl HandlerError
sourcepub fn get<T: Any + Send + Sync>(&self) -> Option<&T>
pub fn get<T: Any + Send + Sync>(&self) -> Option<&T>
Returns an option containing a reference if the error contained within this error matches the requested type.
Trait Implementations§
source§impl Debug for HandlerError
impl Debug for HandlerError
source§impl Display for HandlerError
impl Display for HandlerError
source§impl Error for HandlerError
impl Error for HandlerError
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()
source§impl From<HandlerError> for Error
impl From<HandlerError> for Error
source§fn from(val: HandlerError) -> Self
fn from(val: HandlerError) -> Self
Converts to this type from the input type.
source§impl IntoHandlerError for HandlerError
impl IntoHandlerError for HandlerError
fn into_handler_error(self) -> HandlerError
Auto Trait Implementations§
impl Freeze for HandlerError
impl !RefUnwindSafe for HandlerError
impl Send for HandlerError
impl Sync for HandlerError
impl Unpin for HandlerError
impl !UnwindSafe for HandlerError
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