pub struct ActiveStorePublication { /* private fields */ }Expand description
The exact conditional Store-publication attempt owned by one local operation.
Implementations§
Source§impl ActiveStorePublication
impl ActiveStorePublication
pub fn for_commit( owner: ActiveStorePublicationOwner, candidate: &PreparedStoreOperationCommit, ) -> Result<Self, DbError>
pub fn commit( owner: ActiveStorePublicationOwner, write_id: WriteId, author_registration: StoreDeviceRegistrationRef, coord: StoreCommitCoord, publication: PreparedStorePublication, ) -> Result<Self, DbError>
pub fn snapshot(publication: PreparedStorePublication) -> Result<Self, DbError>
pub fn owner(&self) -> &ActiveStorePublicationOwner
pub fn attempt(&self) -> Result<&PreparedStorePublication, DbError>
pub fn covered_write_position(&self) -> Option<&SnapshotCoveredPosition>
pub fn is_awaiting_preparation(&self) -> bool
pub fn is_discarding(&self) -> bool
pub fn retired_candidates(&self) -> &[RetiredStoreCandidate]
pub fn retired_snapshot_objects(&self) -> &[ExactObjectRef]
pub fn superseding_snapshot(&self) -> Option<&PublishedStoreSnapshot>
pub fn membership_abandonment(&self) -> Option<&PreparedStoreOperationCommit>
pub fn commit_reservation( &self, ) -> Option<(&WriteId, &StoreDeviceRegistrationRef, &StoreCommitCoord)>
pub fn superseded_entry(&self) -> Option<&StorePublicationRef>
pub fn same_commit_reservation(&self, other: &Self) -> bool
pub fn replace_attempt( &self, attempt: PreparedStorePublication, ) -> Result<Self, DbError>
Trait Implementations§
Source§impl Clone for ActiveStorePublication
impl Clone for ActiveStorePublication
Source§fn clone(&self) -> ActiveStorePublication
fn clone(&self) -> ActiveStorePublication
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 ActiveStorePublication
impl Debug for ActiveStorePublication
Source§impl<'de> Deserialize<'de> for ActiveStorePublication
impl<'de> Deserialize<'de> for ActiveStorePublication
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 ActiveStorePublication
impl PartialEq for ActiveStorePublication
Source§impl Serialize for ActiveStorePublication
impl Serialize for ActiveStorePublication
impl Eq for ActiveStorePublication
impl StructuralPartialEq for ActiveStorePublication
Auto Trait Implementations§
impl !Freeze for ActiveStorePublication
impl RefUnwindSafe for ActiveStorePublication
impl Send for ActiveStorePublication
impl Sync for ActiveStorePublication
impl Unpin for ActiveStorePublication
impl UnsafeUnpin for ActiveStorePublication
impl UnwindSafe for ActiveStorePublication
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.