pub enum CommitOutcome {
Created,
AlreadyPresent,
}Expand description
How a PackSink::commit ended.
Variants§
Created
The blob is new.
AlreadyPresent
The blob was already there (identical bytes, by construction).
Advisory: a concurrent writer of the same key may see Created too,
and a backend that cannot tell cheaply may report Created. Nothing
may depend on it for correctness or accounting.
Trait Implementations§
Source§impl Clone for CommitOutcome
impl Clone for CommitOutcome
impl Copy for CommitOutcome
Source§impl Debug for CommitOutcome
impl Debug for CommitOutcome
impl Eq for CommitOutcome
Source§impl PartialEq for CommitOutcome
impl PartialEq for CommitOutcome
impl StructuralPartialEq for CommitOutcome
Auto Trait Implementations§
impl Freeze for CommitOutcome
impl RefUnwindSafe for CommitOutcome
impl Send for CommitOutcome
impl Sync for CommitOutcome
impl Unpin for CommitOutcome
impl UnsafeUnpin for CommitOutcome
impl UnwindSafe for CommitOutcome
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