pub struct Prepared { /* private fields */ }Expand description
A save whose files are staged and whose plan is not yet committed.
Implementations§
Source§impl Prepared
impl Prepared
Sourcepub fn commit(self) -> Result<Committed, StoreError>
pub fn commit(self) -> Result<Committed, StoreError>
Commits the save: the plan is written beside the staged files, synced, and renamed into place. From here on the save happens, whether or not this process finishes it.
§Errors
The plan cannot be written or renamed; the save is then not committed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Prepared
impl RefUnwindSafe for Prepared
impl Send for Prepared
impl Sync for Prepared
impl Unpin for Prepared
impl UnsafeUnpin for Prepared
impl UnwindSafe for Prepared
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