pub enum DurableStoreDeviceExclusionOperation {
CandidatePrepared {
object: DurableStoreDeviceExclusionObject,
candidate: PreparedStoreOperationCommit,
},
CandidateNonactivating {
object: DurableStoreDeviceExclusionObject,
candidate: PreparedStoreOperationCommit,
proof: CandidateNonactivationProof,
},
ReplacingCandidate {
object: DurableStoreDeviceExclusionObject,
candidate: PreparedStoreOperationCommit,
losing: StoreDeviceExclusionCandidateLoss,
},
Completed(StoreDeviceExclusionCompletion),
}Variants§
CandidatePrepared
CandidateNonactivating
ReplacingCandidate
Fields
§
candidate: PreparedStoreOperationCommitCompleted(StoreDeviceExclusionCompletion)
Implementations§
Source§impl DurableStoreDeviceExclusionOperation
impl DurableStoreDeviceExclusionOperation
pub fn prepared( object: DurableStoreDeviceExclusionObject, candidate: PreparedStoreOperationCommit, ) -> Result<Self, StoreDeviceExclusionJournalError>
pub fn operation_id(&self) -> ObjectHash
pub fn is_completed(&self) -> bool
pub fn allows_transition_to(&self, next: &Self) -> bool
pub fn object(&self) -> &DurableStoreDeviceExclusionObject
pub fn candidate(&self) -> Option<&PreparedStoreOperationCommit>
pub fn remote_objects( &self, ) -> Result<Vec<ClosedRemoteObject>, StoreDeviceExclusionJournalError>
pub fn begin_nonactivation( &self, nonactivation: CandidateNonactivation, ) -> Result<(Self, CandidateNonactivation), StoreDeviceExclusionJournalError>
pub fn begin_replacement( &self, replacement: PreparedStoreOperationCommit, nonactivation: CandidateNonactivation, ) -> Result<(Self, CandidateNonactivation), StoreDeviceExclusionJournalError>
pub fn validate(&self) -> Result<(), StoreDeviceExclusionJournalError>
Trait Implementations§
Source§impl Clone for DurableStoreDeviceExclusionOperation
impl Clone for DurableStoreDeviceExclusionOperation
Source§fn clone(&self) -> DurableStoreDeviceExclusionOperation
fn clone(&self) -> DurableStoreDeviceExclusionOperation
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<'de> Deserialize<'de> for DurableStoreDeviceExclusionOperation
impl<'de> Deserialize<'de> for DurableStoreDeviceExclusionOperation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DurableStoreDeviceExclusionOperation
impl PartialEq for DurableStoreDeviceExclusionOperation
Source§fn eq(&self, other: &DurableStoreDeviceExclusionOperation) -> bool
fn eq(&self, other: &DurableStoreDeviceExclusionOperation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DurableStoreDeviceExclusionOperation
impl StructuralPartialEq for DurableStoreDeviceExclusionOperation
Auto Trait Implementations§
impl !Freeze for DurableStoreDeviceExclusionOperation
impl RefUnwindSafe for DurableStoreDeviceExclusionOperation
impl Send for DurableStoreDeviceExclusionOperation
impl Sync for DurableStoreDeviceExclusionOperation
impl Unpin for DurableStoreDeviceExclusionOperation
impl UnsafeUnpin for DurableStoreDeviceExclusionOperation
impl UnwindSafe for DurableStoreDeviceExclusionOperation
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.