pub struct AggregateOperationFault<T> { /* private fields */ }Expand description
Fail-loud invariant report: a consumed typed commit disagreed with itself.
The crate’s own commit constructors make both reasons unreachable; this arm exists so a violated internal pairing invariant surfaces as a typed error carrying the unchanged shell and the intact operation value, never as a silently recorded lie and never as a panic.
Implementations§
Source§impl<T> AggregateOperationFault<T>
impl<T> AggregateOperationFault<T>
Sourcepub const fn reason(&self) -> AggregateOperationFaultReason
pub const fn reason(&self) -> AggregateOperationFaultReason
Returns the exact violated pairing invariant.
Sourcepub fn into_parts(self) -> (ParticipantConversation, T)
pub fn into_parts(self) -> (ParticipantConversation, T)
Recovers the unchanged shell and the intact operation commit.
Trait Implementations§
Source§impl<T: Debug> Debug for AggregateOperationFault<T>
impl<T: Debug> Debug for AggregateOperationFault<T>
impl<T: Eq> Eq for AggregateOperationFault<T>
Source§impl<T: PartialEq> PartialEq for AggregateOperationFault<T>
impl<T: PartialEq> PartialEq for AggregateOperationFault<T>
impl<T: PartialEq> StructuralPartialEq for AggregateOperationFault<T>
Auto Trait Implementations§
impl<T> Freeze for AggregateOperationFault<T>where
T: Freeze,
impl<T> RefUnwindSafe for AggregateOperationFault<T>where
T: RefUnwindSafe,
impl<T> Send for AggregateOperationFault<T>where
T: Send,
impl<T> Sync for AggregateOperationFault<T>where
T: Sync,
impl<T> Unpin for AggregateOperationFault<T>where
T: Unpin,
impl<T> UnsafeUnpin for AggregateOperationFault<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for AggregateOperationFault<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