pub enum TryBorrowInnerError {
NotSupported,
Generic(&'static str),
}Expand description
Error returned when try_borrow_inner fails.
Variants§
NotSupported
The type does not support borrowing an inner value.
Generic(&'static str)
A generic error message.
Trait Implementations§
Source§impl Debug for TryBorrowInnerError
impl Debug for TryBorrowInnerError
Source§impl Display for TryBorrowInnerError
impl Display for TryBorrowInnerError
Source§impl Error for TryBorrowInnerError
impl Error for TryBorrowInnerError
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 TryBorrowInnerError
impl RefUnwindSafe for TryBorrowInnerError
impl Send for TryBorrowInnerError
impl Sync for TryBorrowInnerError
impl Unpin for TryBorrowInnerError
impl UnsafeUnpin for TryBorrowInnerError
impl UnwindSafe for TryBorrowInnerError
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