pub struct BackingFile<T> { /* private fields */ }
Implementations§
Source§impl<T> BackingFile<T>
impl<T> BackingFile<T>
pub fn new<P: AsRef<Path>>(path: P) -> Result<BackingFile<T>, BackingFileError>
pub fn read(&mut self) -> Option<T>
pub fn try_read(&mut self) -> Result<T, BackingFileError>
pub fn write_all(&mut self, item: &T) -> Result<(), BackingFileError>
Auto Trait Implementations§
impl<T> Freeze for BackingFile<T>
impl<T> RefUnwindSafe for BackingFile<T>where
T: RefUnwindSafe,
impl<T> Send for BackingFile<T>where
T: Send,
impl<T> Sync for BackingFile<T>where
T: Sync,
impl<T> Unpin for BackingFile<T>where
T: Unpin,
impl<T> UnwindSafe for BackingFile<T>where
T: 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