pub struct BasicFSParams {
pub block_size: Option<usize>,
pub read_only: bool,
}
Expand description
Generic parameters for basic filesystem creation
Fields§
§block_size: Option<usize>
Block size (for block-based filesystems)
read_only: bool
Read-only flag
Implementations§
Source§impl BasicFSParams
impl BasicFSParams
Sourcepub fn with_block_size(self, block_size: usize) -> Self
pub fn with_block_size(self, block_size: usize) -> Self
Set block size
Sourcepub fn with_read_only(self, read_only: bool) -> Self
pub fn with_read_only(self, read_only: bool) -> Self
Set read-only flag
Trait Implementations§
Source§impl Clone for BasicFSParams
impl Clone for BasicFSParams
Source§fn clone(&self) -> BasicFSParams
fn clone(&self) -> BasicFSParams
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BasicFSParams
impl Debug for BasicFSParams
Source§impl Default for BasicFSParams
impl Default for BasicFSParams
Source§impl FileSystemParams for BasicFSParams
impl FileSystemParams for BasicFSParams
Source§fn to_string_map(&self) -> BTreeMap<String, String>
fn to_string_map(&self) -> BTreeMap<String, String>
Convert parameters to string map for backward compatibility Read more
Source§fn from_string_map(map: &BTreeMap<String, String>) -> Result<Self, String>
fn from_string_map(map: &BTreeMap<String, String>) -> Result<Self, String>
Create parameters from string map for backward compatibility Read more
Source§impl PartialEq for BasicFSParams
impl PartialEq for BasicFSParams
impl StructuralPartialEq for BasicFSParams
Auto Trait Implementations§
impl Freeze for BasicFSParams
impl RefUnwindSafe for BasicFSParams
impl Send for BasicFSParams
impl Sync for BasicFSParams
impl Unpin for BasicFSParams
impl UnwindSafe for BasicFSParams
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§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
)