pub enum WriteStep {
Wrote(PathBuf),
SyncedFile,
Renamed,
SyncedDirectory,
}Expand description
A step atomic_write has finished, in the order they happen.
Variants§
Wrote(PathBuf)
The contents are in a temporary file next to the real one, which the path names.
SyncedFile
The temporary file is on the disk, not only in the operating system’s cache.
Renamed
The temporary file now carries the real name, replacing what was there.
SyncedDirectory
The directory entry is on the disk, so the rename survives a power cut. Not reported on
platforms where a directory cannot be flushed; see atomic_write.
Trait Implementations§
impl Eq for WriteStep
impl StructuralPartialEq for WriteStep
Auto Trait Implementations§
impl Freeze for WriteStep
impl RefUnwindSafe for WriteStep
impl Send for WriteStep
impl Sync for WriteStep
impl Unpin for WriteStep
impl UnsafeUnpin for WriteStep
impl UnwindSafe for WriteStep
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more