pub enum CursorResolveResult {
Matched(Vec<Event>),
Exhausted,
Mismatch {
expected_key: CorrelationKey,
found: FoundEventDescriptor,
},
}Expand description
Outcome of asking the cursor to resolve the next recorded command outcome.
Variants§
Matched(Vec<Event>)
The recorded command stream matched; contained events were consumed in order.
Exhausted
The cursor has no remaining recorded event to consider.
Mismatch
The next recorded event exists, but its family or key differs from the command.
Fields
§
expected_key: CorrelationKeyCorrelation key the workflow command expected to replay.
§
found: FoundEventDescriptorDescriptor for the recorded event actually at the cursor position.
Trait Implementations§
Source§impl Clone for CursorResolveResult
impl Clone for CursorResolveResult
Source§fn clone(&self) -> CursorResolveResult
fn clone(&self) -> CursorResolveResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CursorResolveResult
impl Debug for CursorResolveResult
Source§impl PartialEq for CursorResolveResult
impl PartialEq for CursorResolveResult
impl StructuralPartialEq for CursorResolveResult
Auto Trait Implementations§
impl Freeze for CursorResolveResult
impl RefUnwindSafe for CursorResolveResult
impl Send for CursorResolveResult
impl Sync for CursorResolveResult
impl Unpin for CursorResolveResult
impl UnsafeUnpin for CursorResolveResult
impl UnwindSafe for CursorResolveResult
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