pub enum TryUpdateError {
OtherUpdate,
InactiveReads,
}
Expand description
Error returned when a PairLock.try_update()
fails,
because it would otherwise have blocked.
Variants§
OtherUpdate
Was locked by another update.
InactiveReads
There were unfinished reads of the inactive value.
Trait Implementations§
Source§impl Clone for TryUpdateError
impl Clone for TryUpdateError
Source§fn clone(&self) -> TryUpdateError
fn clone(&self) -> TryUpdateError
Returns a copy 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 TryUpdateError
impl Debug for TryUpdateError
Source§impl Display for TryUpdateError
impl Display for TryUpdateError
Source§impl Error for TryUpdateError
impl Error for TryUpdateError
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Source§impl PartialEq for TryUpdateError
impl PartialEq for TryUpdateError
impl Copy for TryUpdateError
impl Eq for TryUpdateError
impl StructuralPartialEq for TryUpdateError
Auto Trait Implementations§
impl Freeze for TryUpdateError
impl RefUnwindSafe for TryUpdateError
impl Send for TryUpdateError
impl Sync for TryUpdateError
impl Unpin for TryUpdateError
impl UnwindSafe for TryUpdateError
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