#[non_exhaustive]pub enum FoldOutcome {
Applied,
Item(ItemOutcome),
Resolution {
first: bool,
},
Ignored,
}Expand description
What SessionFold::apply did with one event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Applied
The fold took the event (a redelivery may leave it unchanged).
Item(ItemOutcome)
An item/started, item/updated or item/completed: the item was
inserted, replaced, or ignored as stale.
Resolution
A terminal for an approval or a question.
Ignored
The event changed nothing: another session’s, malformed, a method the fold does not fold, a repeat or out-of-order event the fold drops, or arriving after the fold stopped (a re-opened fold still takes question events).
Trait Implementations§
Source§impl Clone for FoldOutcome
impl Clone for FoldOutcome
Source§impl Debug for FoldOutcome
impl Debug for FoldOutcome
impl Eq for FoldOutcome
Source§impl PartialEq for FoldOutcome
impl PartialEq for FoldOutcome
impl StructuralPartialEq for FoldOutcome
Auto Trait Implementations§
impl Freeze for FoldOutcome
impl RefUnwindSafe for FoldOutcome
impl Send for FoldOutcome
impl Sync for FoldOutcome
impl Unpin for FoldOutcome
impl UnsafeUnpin for FoldOutcome
impl UnwindSafe for FoldOutcome
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