pub struct FileSource<F> {
pub path: String,
pub format: F,
pub max_bytes: Option<u32>,
}Expand description
A table kept in one private file.
Fields§
§path: StringThe file. Created, readable by its owner alone, when the first record is put; a missing file is an empty table.
format: FHow the file is written.
max_bytes: Option<u32>The most the file may hold, in bytes, read or written; absent is the provider’s
default, which is DEFAULT_MAX_BYTES unless it sizes one
from its record limit.
Trait Implementations§
Source§impl<F: Clone> Clone for FileSource<F>
impl<F: Clone> Clone for FileSource<F>
Source§impl<F: Debug> Debug for FileSource<F>
impl<F: Debug> Debug for FileSource<F>
Source§impl<F> Describe for FileSource<F>where
F: Describe + Inspect,
impl<F> Describe for FileSource<F>where
F: Describe + Inspect,
impl<F: Eq> Eq for FileSource<F>
impl<F> Fields for FileSource<F>where
F: Describe + Inspect,
Source§impl<F> Inspect for FileSource<F>where
F: Describe + Inspect,
impl<F> Inspect for FileSource<F>where
F: Describe + Inspect,
Source§impl<F: PartialEq> PartialEq for FileSource<F>
impl<F: PartialEq> PartialEq for FileSource<F>
impl<F: PartialEq> StructuralPartialEq for FileSource<F>
Auto Trait Implementations§
impl<F> Freeze for FileSource<F>where
F: Freeze,
impl<F> RefUnwindSafe for FileSource<F>where
F: RefUnwindSafe,
impl<F> Send for FileSource<F>where
F: Send,
impl<F> Sync for FileSource<F>where
F: Sync,
impl<F> Unpin for FileSource<F>where
F: Unpin,
impl<F> UnsafeUnpin for FileSource<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for FileSource<F>where
F: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.