pub enum PreparedStateWriteV1 {
Registered(RegisteredStateRecoveryLocatorV1),
Ephemeral(EphemeralStateActionReferenceV1),
}Variants§
Registered(RegisteredStateRecoveryLocatorV1)
Ephemeral(EphemeralStateActionReferenceV1)
Implementations§
Source§impl PreparedStateWriteV1
impl PreparedStateWriteV1
pub fn registered( collection_index_ref: CollectionIndexRef, shard_id: ShardId, routing_revision: RoutingRevision, submitted_fence: FenceToken, action_id: StateActionId, state_incarnation: StateIncarnation, command: &StateCommandV1, retention: StateOutcomeRetentionV1, ) -> Result<Self, StateContractError>
pub fn ephemeral( collection_index_ref: CollectionIndexRef, shard_id: ShardId, routing_revision: RoutingRevision, action_id: StateActionId, reset_epoch: StateIncarnation, command: &StateCommandV1, retention: StateOutcomeRetentionV1, ) -> Result<Self, StateContractError>
pub fn intent_for( &self, command: &StateCommandV1, expected_collection_index_ref: CollectionIndexRef, ) -> Result<StateWriteIntentV1, StateContractError>
pub const fn shard_id(&self) -> ShardId
pub const fn routing_revision(&self) -> RoutingRevision
pub const fn observed_high_water(&self) -> Option<SeqNo>
Trait Implementations§
Source§impl Clone for PreparedStateWriteV1
impl Clone for PreparedStateWriteV1
Source§impl Debug for PreparedStateWriteV1
impl Debug for PreparedStateWriteV1
Source§impl<'de> Deserialize<'de> for PreparedStateWriteV1
impl<'de> Deserialize<'de> for PreparedStateWriteV1
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
impl Eq for PreparedStateWriteV1
Source§impl PartialEq for PreparedStateWriteV1
impl PartialEq for PreparedStateWriteV1
Source§impl Serialize for PreparedStateWriteV1
impl Serialize for PreparedStateWriteV1
impl StructuralPartialEq for PreparedStateWriteV1
Auto Trait Implementations§
impl Freeze for PreparedStateWriteV1
impl RefUnwindSafe for PreparedStateWriteV1
impl Send for PreparedStateWriteV1
impl Sync for PreparedStateWriteV1
impl Unpin for PreparedStateWriteV1
impl UnsafeUnpin for PreparedStateWriteV1
impl UnwindSafe for PreparedStateWriteV1
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