pub enum StateWriteOutcome<T> {
Applied(T),
Resolved {
value: T,
sequence: U64,
},
NotSubmitted,
KnownRetired {
retired_through: U64,
},
StateReset {
submitted_reset_epoch: U64,
current_reset_epoch: U64,
},
Indeterminate {
observed_high_water: Option<U64>,
current_high_water: Option<U64>,
retired_through: Option<U64>,
},
}Expand description
Stable outcome of the prepare/submit/resolve state-write workflow.
Variants§
Trait Implementations§
Source§impl<T: Clone> Clone for StateWriteOutcome<T>
impl<T: Clone> Clone for StateWriteOutcome<T>
Source§impl<T: Debug> Debug for StateWriteOutcome<T>
impl<T: Debug> Debug for StateWriteOutcome<T>
Source§impl<T: PartialEq> PartialEq for StateWriteOutcome<T>
impl<T: PartialEq> PartialEq for StateWriteOutcome<T>
impl<T: PartialEq> StructuralPartialEq for StateWriteOutcome<T>
Auto Trait Implementations§
impl<T> Freeze for StateWriteOutcome<T>where
T: Freeze,
impl<T> RefUnwindSafe for StateWriteOutcome<T>where
T: RefUnwindSafe,
impl<T> Send for StateWriteOutcome<T>where
T: Send,
impl<T> Sync for StateWriteOutcome<T>where
T: Sync,
impl<T> Unpin for StateWriteOutcome<T>where
T: Unpin,
impl<T> UnsafeUnpin for StateWriteOutcome<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for StateWriteOutcome<T>where
T: UnwindSafe,
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<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<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request