pub struct Committed<T> {
pub value: T,
pub commit: Option<CommitId>,
}Expand description
Result of Store::transaction.
Fields§
§value: TWhat the closure returned.
commit: Option<CommitId>The new commit; None when the staged changes left the tree as it was.
Trait Implementations§
Auto Trait Implementations§
impl<T> Forget for Committed<T>
impl<T> Freeze for Committed<T>
impl<T> Move for Committed<T>
impl<T> RefUnwindSafe for Committed<T>where
T: RefUnwindSafe,
impl<T> Send for Committed<T>
impl<T> Sync for Committed<T>
impl<T> Unpin for Committed<T>
impl<T> UnsafeUnpin for Committed<T>
impl<T> UnwindSafe for Committed<T>where
T: UnwindSafe,
RawVecInner: 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