pub struct FSOptions { /* private fields */ }Expand description
FileSystem mount options
Implementations§
Source§impl FSOptions
impl FSOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new options struct with the default options
This is just an alias to Self::default
Sourcepub fn set_codepage(&mut self, codepage: Codepage)
pub fn set_codepage(&mut self, codepage: Codepage)
Set the codepage to be used by the filesystem
Sourcepub fn with_codepage(self, codepage: Codepage) -> Self
pub fn with_codepage(self, codepage: Codepage) -> Self
Set the codepage to be used by the filesystem (chainable)
Sourcepub fn set_update_file_fields(&mut self, update: bool)
pub fn set_update_file_fields(&mut self, update: bool)
Whether to update the last accessed/modified file fields
Sourcepub fn with_update_file_fields(self, update: bool) -> Self
pub fn with_update_file_fields(self, update: bool) -> Self
Whether to update the last accessed/modified file fields (chainable)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FSOptions
impl !RefUnwindSafe for FSOptions
impl !Send for FSOptions
impl !Sync for FSOptions
impl Unpin for FSOptions
impl !UnwindSafe for FSOptions
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