pub enum DurableStoreReclaimOperation {
AuthorizationCandidate {
object: Box<DurableStoreReclaimObject>,
candidate: Box<PreparedStoreOperationCommit>,
},
Authorized {
authorization: ReclaimAuthorizationRef,
activation: ReclaimCommitActivation,
},
AbsentVerified {
authorization: ReclaimAuthorizationRef,
authorization_activation: ReclaimCommitActivation,
target: ReclaimTarget,
},
ReceiptCandidate {
authorization: ReclaimAuthorizationRef,
authorization_activation: ReclaimCommitActivation,
object: Box<DurableStoreReclaimObject>,
candidate: Box<PreparedStoreOperationCommit>,
},
AuthorizationReplacing {
object: Box<DurableStoreReclaimObject>,
candidate: Box<PreparedStoreOperationCommit>,
losing: Box<StoreReclaimCandidateLoss>,
},
ReceiptReplacing {
authorization: ReclaimAuthorizationRef,
authorization_activation: ReclaimCommitActivation,
object: Box<DurableStoreReclaimObject>,
candidate: Box<PreparedStoreOperationCommit>,
losing: Box<StoreReclaimCandidateLoss>,
},
Completed {
authorization: ReclaimAuthorizationRef,
authorization_activation: ReclaimCommitActivation,
receipt: ReclaimReceiptRef,
receipt_activation: ReclaimCommitActivation,
},
}Variants§
AuthorizationCandidate
Authorized
AbsentVerified
ReceiptCandidate
AuthorizationReplacing
Fields
§
object: Box<DurableStoreReclaimObject>§
candidate: Box<PreparedStoreOperationCommit>§
losing: Box<StoreReclaimCandidateLoss>ReceiptReplacing
Fields
§
object: Box<DurableStoreReclaimObject>§
candidate: Box<PreparedStoreOperationCommit>§
losing: Box<StoreReclaimCandidateLoss>Completed
Implementations§
Source§impl DurableStoreReclaimOperation
impl DurableStoreReclaimOperation
pub fn operation_id(&self) -> ObjectHash
pub fn candidate(&self) -> Option<&PreparedStoreOperationCommit>
pub fn object(&self) -> Option<&DurableStoreReclaimObject>
pub fn losing_candidate(&self) -> Option<&StoreReclaimCandidateLoss>
pub fn validate(&self) -> Result<(), StoreReclaimJournalError>
Trait Implementations§
Source§impl Clone for DurableStoreReclaimOperation
impl Clone for DurableStoreReclaimOperation
Source§fn clone(&self) -> DurableStoreReclaimOperation
fn clone(&self) -> DurableStoreReclaimOperation
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 DurableStoreReclaimOperation
impl Debug for DurableStoreReclaimOperation
Source§impl<'de> Deserialize<'de> for DurableStoreReclaimOperation
impl<'de> Deserialize<'de> for DurableStoreReclaimOperation
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 DurableStoreReclaimOperation
impl PartialEq for DurableStoreReclaimOperation
Source§fn eq(&self, other: &DurableStoreReclaimOperation) -> bool
fn eq(&self, other: &DurableStoreReclaimOperation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DurableStoreReclaimOperation
impl StructuralPartialEq for DurableStoreReclaimOperation
Auto Trait Implementations§
impl Freeze for DurableStoreReclaimOperation
impl RefUnwindSafe for DurableStoreReclaimOperation
impl Send for DurableStoreReclaimOperation
impl Sync for DurableStoreReclaimOperation
impl Unpin for DurableStoreReclaimOperation
impl UnsafeUnpin for DurableStoreReclaimOperation
impl UnwindSafe for DurableStoreReclaimOperation
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.