pub enum MutationRemoteOutcome {
Committed {
item: Option<CloudItem>,
},
AlreadyCommitted {
item: Option<CloudItem>,
},
PreconditionFailed {
metadata_revision: Option<MetadataRevision>,
content_revision: Option<ContentRevision>,
},
RemoteOutcomeUnknown,
}Expand description
Product-neutral result of one conditional remote mutation.
Variants§
Committed
The backend committed the requested effect during this attempt.
Fields
AlreadyCommitted
Reconciliation proved that an earlier attempt already committed the effect.
Fields
PreconditionFailed
One or more revision preconditions no longer match remote state.
Fields
§
metadata_revision: Option<MetadataRevision>Current metadata revision when known.
§
content_revision: Option<ContentRevision>Current content revision when known.
RemoteOutcomeUnknown
The transport result does not prove whether the backend committed the effect.
Trait Implementations§
Source§impl Clone for MutationRemoteOutcome
impl Clone for MutationRemoteOutcome
Source§fn clone(&self) -> MutationRemoteOutcome
fn clone(&self) -> MutationRemoteOutcome
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 MutationRemoteOutcome
impl Debug for MutationRemoteOutcome
Source§impl PartialEq for MutationRemoteOutcome
impl PartialEq for MutationRemoteOutcome
impl Eq for MutationRemoteOutcome
impl StructuralPartialEq for MutationRemoteOutcome
Auto Trait Implementations§
impl Freeze for MutationRemoteOutcome
impl RefUnwindSafe for MutationRemoteOutcome
impl Send for MutationRemoteOutcome
impl Sync for MutationRemoteOutcome
impl Unpin for MutationRemoteOutcome
impl UnwindSafe for MutationRemoteOutcome
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