Struct singlefile::manager::mode::Atomic
source · pub struct Atomic<Format> { /* private fields */ }Expand description
Similar to Writable, but eliminates the possibility of file corruption in the case of
the FileFormat failing midway during a write. The tradeoff is that file contents must be
buffered in memory during a write.
Trait Implementations
sourceimpl<T, Format> Reading<T, Format> for Atomic<Format>where
Format: FileFormat<T>,
impl<T, Format> Reading<T, Format> for Atomic<Format>where
Format: FileFormat<T>,
Auto Trait Implementations
impl<Format> RefUnwindSafe for Atomic<Format>where
Format: RefUnwindSafe,
impl<Format> Send for Atomic<Format>where
Format: Send,
impl<Format> Sync for Atomic<Format>where
Format: Sync,
impl<Format> Unpin for Atomic<Format>where
Format: Unpin,
impl<Format> UnwindSafe for Atomic<Format>where
Format: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more