pub enum HandlerAccessError {
AlreadyBorrowed,
NoHandler,
InvalidType,
}Expand description
An error returned when trying to access a handler.
Variants§
AlreadyBorrowed
The handler is already borrowed.
NoHandler
The object has no handler.
InvalidType
The handler has a different type.
Trait Implementations§
Source§impl Debug for HandlerAccessError
impl Debug for HandlerAccessError
Source§impl Display for HandlerAccessError
impl Display for HandlerAccessError
Source§impl Error for HandlerAccessError
impl Error for HandlerAccessError
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 HandlerAccessError
impl RefUnwindSafe for HandlerAccessError
impl Send for HandlerAccessError
impl Sync for HandlerAccessError
impl Unpin for HandlerAccessError
impl UnwindSafe for HandlerAccessError
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