pub struct MaybeCommitted(/* private fields */);Expand description
Whether any earlier attempt in this run may have committed.
Once true, this remains true for every subsequent attempt, even if later
attempts fail with errors that are known not to have committed.
Convert it to a boolean with bool::from when checking the flag.
Trait Implementations§
Source§impl From<MaybeCommitted> for bool
impl From<MaybeCommitted> for bool
Source§fn from(value: MaybeCommitted) -> Self
fn from(value: MaybeCommitted) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MaybeCommitted
impl RefUnwindSafe for MaybeCommitted
impl Send for MaybeCommitted
impl Sync for MaybeCommitted
impl Unpin for MaybeCommitted
impl UnwindSafe for MaybeCommitted
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