pub enum CreateOutcome {
Created,
Reused {
equal: bool,
},
Replaced,
Conflict,
}Expand description
Resultat einer create-Operation.
Variants§
Created
Object wurde frisch angelegt.
Reused
Objekt existierte bereits, mit reuse=true wiederverwendet
(Inhalt ist gleich → STATUS_OK_MATCHED, oder Inhalt unterscheidet
sich → STATUS_ERR_MISMATCH — die Unterscheidung uebernimmt der Caller).
Replaced
Objekt existierte bereits, mit replace=true ersetzt.
Conflict
Objekt existierte bereits, kein reuse/replace → Konflikt.
Trait Implementations§
Source§impl Clone for CreateOutcome
impl Clone for CreateOutcome
Source§fn clone(&self) -> CreateOutcome
fn clone(&self) -> CreateOutcome
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 CreateOutcome
impl Debug for CreateOutcome
Source§impl PartialEq for CreateOutcome
impl PartialEq for CreateOutcome
Source§fn eq(&self, other: &CreateOutcome) -> bool
fn eq(&self, other: &CreateOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CreateOutcome
impl StructuralPartialEq for CreateOutcome
Auto Trait Implementations§
impl Freeze for CreateOutcome
impl RefUnwindSafe for CreateOutcome
impl Send for CreateOutcome
impl Sync for CreateOutcome
impl Unpin for CreateOutcome
impl UnsafeUnpin for CreateOutcome
impl UnwindSafe for CreateOutcome
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