pub enum CowGuardError {
Poisoned,
ExclusiveLockPending,
WouldBlock,
}Expand description
A error for the Cow operations.
Variants§
Poisoned
The instance was poisoned during exclusive lock (non-cow operation).
ExclusiveLockPending
An exclusive lock is pending so another writing opration performing Cow would block.
WouldBlock
Is returned by the borrow operation if an exclusive lock (non-cow op) is pending.
Trait Implementations§
Source§impl Clone for CowGuardError
impl Clone for CowGuardError
Source§fn clone(&self) -> CowGuardError
fn clone(&self) -> CowGuardError
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 CowGuardError
impl Debug for CowGuardError
Source§impl Display for CowGuardError
impl Display for CowGuardError
Source§impl PartialEq for CowGuardError
impl PartialEq for CowGuardError
impl Copy for CowGuardError
impl Eq for CowGuardError
impl StructuralPartialEq for CowGuardError
Auto Trait Implementations§
impl Freeze for CowGuardError
impl RefUnwindSafe for CowGuardError
impl Send for CowGuardError
impl Sync for CowGuardError
impl Unpin for CowGuardError
impl UnwindSafe for CowGuardError
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