pub struct ParticipantSemanticOutcome<T> { /* private fields */ }Expand description
One semantic result paired with every dispatch effect durably installed by the request before it returned.
The envelope deliberately owns the Result: a marker-drain prefix can
commit before a later retry fails, and that failure must not erase the
prefix’s post-commit tell.
Implementations§
Source§impl<T> ParticipantSemanticOutcome<T>
impl<T> ParticipantSemanticOutcome<T>
Sourcepub const fn unchanged(result: Result<T, ParticipantSemanticError>) -> Self
pub const fn unchanged(result: Result<T, ParticipantSemanticError>) -> Self
Wraps a fixture or operation which installed no dispatch effect.
Sourcepub const fn new(
result: Result<T, ParticipantSemanticError>,
impact: DispatchImpact,
) -> Self
pub const fn new( result: Result<T, ParticipantSemanticError>, impact: DispatchImpact, ) -> Self
Carries an operation result and its complete request accumulator.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ParticipantSemanticOutcome<T>where
T: Freeze,
impl<T> RefUnwindSafe for ParticipantSemanticOutcome<T>where
T: RefUnwindSafe,
impl<T> Send for ParticipantSemanticOutcome<T>where
T: Send,
impl<T> Sync for ParticipantSemanticOutcome<T>where
T: Sync,
impl<T> Unpin for ParticipantSemanticOutcome<T>where
T: Unpin,
impl<T> UnsafeUnpin for ParticipantSemanticOutcome<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ParticipantSemanticOutcome<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