pub enum Expected {
Absent,
Commit(Checksum),
Any,
}Expand description
The state that a ref update expects the ref to be in.
Variants§
Absent
The ref is absent (wire state 0).
Commit(Checksum)
The ref points at this commit (wire state 1).
Any
The ref is in any state (wire state 2).
Trait Implementations§
impl Copy for Expected
impl Eq for Expected
impl StructuralPartialEq for Expected
Auto Trait Implementations§
impl Forget for Expected
impl Freeze for Expected
impl Move for Expected
impl RefUnwindSafe for Expected
impl Send for Expected
impl Sync for Expected
impl Unpin for Expected
impl UnsafeUnpin for Expected
impl UnwindSafe for Expected
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.