pub enum InlineMax {
Default,
Disabled,
Limit(usize),
}Expand description
Inline-file limit policy.
C littlefs gives inline_max = 0 the special meaning “derive the largest
safe inline threshold”, while (lfs_size_t)-1 disables inline storage. A
Rust usize alone cannot represent both sentinels cleanly, so the public
API uses an explicit enum.
Variants§
Default
Derive C’s default min(cache_size, attr_max, metadata_limit / 8).
Disabled
Disable non-empty inline file data, matching C’s (lfs_size_t)-1.
Limit(usize)
Use an explicit upper bound after validating it against C’s constraints.
Trait Implementations§
impl Copy for InlineMax
impl Eq for InlineMax
impl StructuralPartialEq for InlineMax
Auto Trait Implementations§
impl Freeze for InlineMax
impl RefUnwindSafe for InlineMax
impl Send for InlineMax
impl Sync for InlineMax
impl Unpin for InlineMax
impl UnsafeUnpin for InlineMax
impl UnwindSafe for InlineMax
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