pub struct FileKV<K: U64 = u64, V: Serialize + DeserializeOwned + Clone = Properties> { /* private fields */ }Available on crate feature
std only.Expand description
File based reader that implements the KVStore trait
Implementations§
Source§impl<K: U64, V: Serialize + DeserializeOwned + Clone> FileKV<K, V>
impl<K: U64, V: Serialize + DeserializeOwned + Clone> FileKV<K, V>
Sourcepub fn new_with_options(
file_name: Option<&str>,
opts: Option<FileOptions>,
) -> FileKV<K, V>
pub fn new_with_options( file_name: Option<&str>, opts: Option<FileOptions>, ) -> FileKV<K, V>
Builds a new File based KV with defined options
Trait Implementations§
Source§impl<K: U64, V: Serialize + DeserializeOwned + Clone> KVStore<K, V> for FileKV<K, V>
impl<K: U64, V: Serialize + DeserializeOwned + Clone> KVStore<K, V> for FileKV<K, V>
Auto Trait Implementations§
impl<K = u64, V = Map<String, ValueType>> !Freeze for FileKV<K, V>
impl<K = u64, V = Map<String, ValueType>> !RefUnwindSafe for FileKV<K, V>
impl<K, V> Send for FileKV<K, V>
impl<K = u64, V = Map<String, ValueType>> !Sync for FileKV<K, V>
impl<K, V> Unpin for FileKV<K, V>
impl<K, V> UnwindSafe for FileKV<K, V>where
V: UnwindSafe,
K: 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