pub enum TryBorrowInnerError {
Unavailable,
Other(&'static str),
}
Expand description
Error type returned by TryBorrowInnerFn
when attempting to borrow
the inner value from a wrapper type.
Variants§
Indicates that the inner value cannot be borrowed at this time, such as when a mutable borrow is already active.
Other(&'static str)
Indicates an other, unspecified error occurred during the borrow attempt. The contained string provides a description of the error.
Trait Implementations§
Source§impl Clone for TryBorrowInnerError
impl Clone for TryBorrowInnerError
Source§fn clone(&self) -> TryBorrowInnerError
fn clone(&self) -> TryBorrowInnerError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§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()
Source§impl PartialEq for TryBorrowInnerError
impl PartialEq for TryBorrowInnerError
impl Eq for TryBorrowInnerError
impl StructuralPartialEq for TryBorrowInnerError
Auto Trait Implementations§
impl Freeze for TryBorrowInnerError
impl RefUnwindSafe for TryBorrowInnerError
impl Send for TryBorrowInnerError
impl Sync for TryBorrowInnerError
impl Unpin 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