pub enum BorrowMutError {
Borrowed,
EmptySlot,
}
Expand description
The error returned when a mutable borrow fails.
Variants§
Borrowed
Couldn’t borrow because the elastic was already borrowed somewhere.
EmptySlot
Couldn’t borrow because the elastic either hadn’t been loaned to, or any outstanding loaned
values were already repossessed by destroying their ElasticGuard
.
Trait Implementations§
Source§impl Clone for BorrowMutError
impl Clone for BorrowMutError
Source§fn clone(&self) -> BorrowMutError
fn clone(&self) -> BorrowMutError
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 BorrowMutError
impl Debug for BorrowMutError
Source§impl Display for BorrowMutError
impl Display for BorrowMutError
Source§impl Error for BorrowMutError
impl Error for BorrowMutError
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()
impl Copy for BorrowMutError
Auto Trait Implementations§
impl Freeze for BorrowMutError
impl RefUnwindSafe for BorrowMutError
impl Send for BorrowMutError
impl Sync for BorrowMutError
impl Unpin for BorrowMutError
impl UnwindSafe for BorrowMutError
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