Struct fuse3::MountOptions [−][src]
mount options.
Implementations
impl MountOptions
[src]
pub fn uid(self, uid: u32) -> Self
[src]
set fuse filesystem mount user_id
, default is current uid.
pub fn gid(self, gid: u32) -> Self
[src]
set fuse filesystem mount group_id
, default is current gid.
pub fn fs_name(self, name: impl Into<String>) -> Self
[src]
set fuse filesystem name, default is fuse.
pub fn rootmode(self, rootmode: u32) -> Self
[src]
set fuse filesystem rootmode
, default is 40000.
pub fn allow_root(self, allow_root: bool) -> Self
[src]
set fuse filesystem allow_root
mount option, default is disable.
pub fn allow_other(self, allow_other: bool) -> Self
[src]
set fuse filesystem allow_other
mount option, default is disable.
pub fn read_only(self, read_only: bool) -> Self
[src]
set fuse filesystem ro
mount option, default is disable.
pub fn nonempty(self, nonempty: bool) -> Self
[src]
allow fuse filesystem mount on a non-empty directory, default is not allowed.
pub fn default_permissions(self, default_permissions: bool) -> Self
[src]
set fuse filesystem default_permissions
mount option, default is disable.
When default_permissions
is set, the raw::access
and path::access
is useless.
pub fn dont_mask(self, dont_mask: bool) -> Self
[src]
don't apply umask to file mode on create operations, default is disable.
pub fn no_open_support(self, no_open_support: bool) -> Self
[src]
make kernel support zero-message opens, default is disable
pub fn no_open_dir_support(self, no_open_dir_support: bool) -> Self
[src]
make kernel support zero-message opendir, default is disable
pub fn handle_killpriv(self, handle_killpriv: bool) -> Self
[src]
fs handle killing suid
/sgid
/cap
on write
/chown
/trunc
, default is disable.
pub fn write_back(self, write_back: bool) -> Self
[src]
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.
pub fn force_readdir_plus(self, force_readdir_plus: bool) -> Self
[src]
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.
pub fn custom_options(self, custom_options: impl Into<OsString>) -> Self
[src]
set custom options for fuse filesystem, the custom options will be used in mount
Trait Implementations
impl Clone for MountOptions
[src]
fn clone(&self) -> MountOptions
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MountOptions
[src]
impl Default for MountOptions
[src]
fn default() -> MountOptions
[src]
impl Eq for MountOptions
[src]
impl PartialEq<MountOptions> for MountOptions
[src]
fn eq(&self, other: &MountOptions) -> bool
[src]
fn ne(&self, other: &MountOptions) -> bool
[src]
impl StructuralEq for MountOptions
[src]
impl StructuralPartialEq for MountOptions
[src]
Auto Trait Implementations
impl RefUnwindSafe for MountOptions
[src]
impl Send for MountOptions
[src]
impl Sync for MountOptions
[src]
impl Unpin for MountOptions
[src]
impl UnwindSafe for MountOptions
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,