pub struct VersionedState {
pub state: Option<SerializedPayload>,
pub revision: Revision,
pub tag: Option<Tag>,
}Expand description
Latest serialized durable state together with its CAS revision.
Fields§
§state: Option<SerializedPayload>Current state, or None when absent or deleted by a tombstone.
revision: RevisionCurrent revision. An id never written or deleted has revision zero.
tag: Option<Tag>Current query tag, or None when absent, untagged, or deleted.
Trait Implementations§
Source§impl Clone for VersionedState
impl Clone for VersionedState
Source§impl Debug for VersionedState
impl Debug for VersionedState
Source§impl Default for VersionedState
impl Default for VersionedState
impl Eq for VersionedState
Source§impl PartialEq for VersionedState
impl PartialEq for VersionedState
impl StructuralPartialEq for VersionedState
Auto Trait Implementations§
impl Freeze for VersionedState
impl RefUnwindSafe for VersionedState
impl Send for VersionedState
impl Sync for VersionedState
impl Unpin for VersionedState
impl UnsafeUnpin for VersionedState
impl UnwindSafe for VersionedState
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<S> IntoEventHandlerResult<S> for S
impl<S> IntoEventHandlerResult<S> for S
Source§fn into_event_handler_result(self) -> Result<S, PersistenceError>
fn into_event_handler_result(self) -> Result<S, PersistenceError>
Converts this handler output into the runtime result.
Source§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage