pub struct LinuxMountConfig { /* private fields */ }Expand description
Native mount-session configuration kept independent from product daemon policy.
Implementations§
Source§impl LinuxMountConfig
impl LinuxMountConfig
Sourcepub fn new(filesystem_name: impl Into<String>) -> Result<Self>
pub fn new(filesystem_name: impl Into<String>) -> Result<Self>
Creates a read-only mount configuration with one fuser event-loop thread.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn with_subtype(self, subtype: impl Into<String>) -> Result<Self>
pub fn with_subtype(self, subtype: impl Into<String>) -> Result<Self>
Sets the optional FUSE filesystem subtype.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn with_kernel_threads(self, threads: usize, clone_fd: bool) -> Result<Self>
pub fn with_kernel_threads(self, threads: usize, clone_fd: bool) -> Result<Self>
Sets native event-loop concurrency and Linux FUSE_DEV_IOC_CLONE use.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn filesystem_name(&self) -> &str
pub fn filesystem_name(&self) -> &str
Returns the filesystem name reported by the mount.
Sourcepub const fn kernel_threads(&self) -> Option<usize>
pub const fn kernel_threads(&self) -> Option<usize>
Returns native fuser event-loop concurrency.
Trait Implementations§
Source§impl Clone for LinuxMountConfig
impl Clone for LinuxMountConfig
Source§fn clone(&self) -> LinuxMountConfig
fn clone(&self) -> LinuxMountConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LinuxMountConfig
impl Debug for LinuxMountConfig
Source§impl PartialEq for LinuxMountConfig
impl PartialEq for LinuxMountConfig
impl Eq for LinuxMountConfig
impl StructuralPartialEq for LinuxMountConfig
Auto Trait Implementations§
impl Freeze for LinuxMountConfig
impl RefUnwindSafe for LinuxMountConfig
impl Send for LinuxMountConfig
impl Sync for LinuxMountConfig
impl Unpin for LinuxMountConfig
impl UnwindSafe for LinuxMountConfig
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