pub struct MaybeCommitted(/* private fields */);
Expand description
Wrapper around the boolean representing whether the
previous transaction is still on fly
This wrapper prevents the boolean to be copy and force it
to be moved instead.
This pretty handy when you don’t want to see the Database::run
closure
capturing the environment.
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