pub enum RefDeletePrecondition {
Any,
Immediate(RefTarget),
Direct(Option<ObjectId>),
Peeled(ObjectId),
}Expand description
The compare-and-delete precondition checked for a queued ref delete.
Variants§
Any
Any existing direct or symbolic ref may be deleted.
Immediate(RefTarget)
The ref’s immediate target must match exactly.
Direct(Option<ObjectId>)
The ref must be direct. When an object id is supplied, it must match.
Peeled(ObjectId)
The ref may be symbolic, but its peeled direct target must match.
Trait Implementations§
Source§impl Clone for RefDeletePrecondition
impl Clone for RefDeletePrecondition
Source§fn clone(&self) -> RefDeletePrecondition
fn clone(&self) -> RefDeletePrecondition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RefDeletePrecondition
impl Debug for RefDeletePrecondition
impl Eq for RefDeletePrecondition
Source§impl PartialEq for RefDeletePrecondition
impl PartialEq for RefDeletePrecondition
Source§fn eq(&self, other: &RefDeletePrecondition) -> bool
fn eq(&self, other: &RefDeletePrecondition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RefDeletePrecondition
Auto Trait Implementations§
impl Freeze for RefDeletePrecondition
impl RefUnwindSafe for RefDeletePrecondition
impl Send for RefDeletePrecondition
impl Sync for RefDeletePrecondition
impl Unpin for RefDeletePrecondition
impl UnsafeUnpin for RefDeletePrecondition
impl UnwindSafe for RefDeletePrecondition
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