pub struct FilesystemOptions {
pub read_size: usize,
pub prog_size: usize,
pub cache_size: usize,
pub lookahead_size: usize,
pub block_cycles: Option<u32>,
pub name_max: u32,
pub file_max: u32,
pub attr_max: u32,
pub metadata_max: Option<usize>,
pub inline_max: InlineMax,
}Expand description
Policy knobs that mirror the non-callback fields of C littlefs’
struct lfs_config.
Config deliberately remains only the physical geometry. That keeps the
old API and all block devices simple, while this type carries the settings
that affect formatting, mounting caches, metadata commit padding, write
thresholds, and the limits recorded in the superblock. The default values
match the C fixture geometry used by the test oracle, with cache/prog sizes
kept at the current low-memory Rust defaults.
Fields§
§read_size: usize§prog_size: usize§cache_size: usize§lookahead_size: usize§block_cycles: Option<u32>§name_max: u32§file_max: u32§attr_max: u32§metadata_max: Option<usize>§inline_max: InlineMaxTrait Implementations§
Source§impl Clone for FilesystemOptions
impl Clone for FilesystemOptions
Source§fn clone(&self) -> FilesystemOptions
fn clone(&self) -> FilesystemOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FilesystemOptions
impl Debug for FilesystemOptions
Source§impl Default for FilesystemOptions
impl Default for FilesystemOptions
Source§impl PartialEq for FilesystemOptions
impl PartialEq for FilesystemOptions
Source§fn eq(&self, other: &FilesystemOptions) -> bool
fn eq(&self, other: &FilesystemOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FilesystemOptions
impl Eq for FilesystemOptions
impl StructuralPartialEq for FilesystemOptions
Auto Trait Implementations§
impl Freeze for FilesystemOptions
impl RefUnwindSafe for FilesystemOptions
impl Send for FilesystemOptions
impl Sync for FilesystemOptions
impl Unpin for FilesystemOptions
impl UnsafeUnpin for FilesystemOptions
impl UnwindSafe for FilesystemOptions
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