pub struct MountOptions { /* private fields */ }
Expand description
mount options.
Implementations§
Source§impl MountOptions
impl MountOptions
Sourcepub fn uid(&mut self, uid: u32) -> &mut Self
pub fn uid(&mut self, uid: u32) -> &mut Self
set fuse filesystem mount user_id
, default is current uid.
Sourcepub fn gid(&mut self, gid: u32) -> &mut Self
pub fn gid(&mut self, gid: u32) -> &mut Self
set fuse filesystem mount group_id
, default is current gid.
Sourcepub fn fs_name(&mut self, name: impl Into<String>) -> &mut Self
pub fn fs_name(&mut self, name: impl Into<String>) -> &mut Self
set fuse filesystem name, default is fuse.
Sourcepub fn allow_root(&mut self, allow_root: bool) -> &mut Self
pub fn allow_root(&mut self, allow_root: bool) -> &mut Self
set fuse filesystem allow_root
mount option, default is disable.
Sourcepub fn allow_other(&mut self, allow_other: bool) -> &mut Self
pub fn allow_other(&mut self, allow_other: bool) -> &mut Self
set fuse filesystem allow_other
mount option, default is disable.
Sourcepub fn read_only(&mut self, read_only: bool) -> &mut Self
pub fn read_only(&mut self, read_only: bool) -> &mut Self
set fuse filesystem ro
mount option, default is disable.
Sourcepub fn nonempty(&mut self, nonempty: bool) -> &mut Self
pub fn nonempty(&mut self, nonempty: bool) -> &mut Self
allow fuse filesystem mount on a non-empty directory, default is not allowed.
Sourcepub fn default_permissions(&mut self, default_permissions: bool) -> &mut Self
pub fn default_permissions(&mut self, default_permissions: bool) -> &mut Self
set fuse filesystem default_permissions
mount option, default is disable.
When default_permissions
is set, the raw::access
and path::access
is useless.
Sourcepub fn dont_mask(&mut self, dont_mask: bool) -> &mut Self
pub fn dont_mask(&mut self, dont_mask: bool) -> &mut Self
don’t apply umask to file mode on create operations, default is disable.
Sourcepub fn no_open_support(&mut self, no_open_support: bool) -> &mut Self
pub fn no_open_support(&mut self, no_open_support: bool) -> &mut Self
make kernel support zero-message opens, default is disable
Sourcepub fn no_open_dir_support(&mut self, no_open_dir_support: bool) -> &mut Self
pub fn no_open_dir_support(&mut self, no_open_dir_support: bool) -> &mut Self
make kernel support zero-message opendir, default is disable
Sourcepub fn handle_killpriv(&mut self, handle_killpriv: bool) -> &mut Self
pub fn handle_killpriv(&mut self, handle_killpriv: bool) -> &mut Self
fs handle killing suid
/sgid
/cap
on write
/chown
/trunc
, default is disable.
Sourcepub fn write_back(&mut self, write_back: bool) -> &mut Self
pub fn write_back(&mut self, write_back: bool) -> &mut Self
try to set the FUSE_WRITEBACK_CACHE
enable write back cache for buffered writes, default
is disable.
§Notes:
if enable this feature, when write flags has FUSE_WRITE_CACHE
, file handle is guessed.
Sourcepub fn force_readdir_plus(&mut self, force_readdir_plus: bool) -> &mut Self
pub fn force_readdir_plus(&mut self, force_readdir_plus: bool) -> &mut Self
force filesystem use readdirplus only, when kernel use readdir will return ENOSYS
,
default is disable.
§Notes:
this may don’t work with some old Linux Kernel.
Sourcepub fn custom_options(
&mut self,
custom_options: impl Into<OsString>,
) -> &mut Self
pub fn custom_options( &mut self, custom_options: impl Into<OsString>, ) -> &mut Self
set custom options for fuse filesystem, the custom options will be used in mount
Trait Implementations§
Source§impl Clone for MountOptions
impl Clone for MountOptions
Source§fn clone(&self) -> MountOptions
fn clone(&self) -> MountOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more