pub enum FileState<R: StdReader> {
Read(R),
Write(FileWriter),
Empty,
}Available on crate feature
std only.Expand description
The state of the store
Variants§
Read(R)
The store is read-only
Write(FileWriter)
The store is write-only
Empty
No data has been written yet
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for FileState<R>where
R: Freeze,
impl<R> RefUnwindSafe for FileState<R>where
R: RefUnwindSafe,
impl<R> Send for FileState<R>where
R: Send,
impl<R> Sync for FileState<R>where
R: Sync,
impl<R> Unpin for FileState<R>where
R: Unpin,
impl<R> UnwindSafe for FileState<R>where
R: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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