Struct fuse3::MountOptions[][src]

pub struct MountOptions { /* fields omitted */ }

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]

impl Debug for MountOptions[src]

impl Default for MountOptions[src]

impl Eq for MountOptions[src]

impl PartialEq<MountOptions> for MountOptions[src]

impl StructuralEq for MountOptions[src]

impl StructuralPartialEq for MountOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.