[][src]Struct libfuse_sys::fuse::fuse_module

#[repr(C)]pub struct fuse_module {
    pub name: *const c_char,
    pub factory: Option<unsafe extern "C" fn(args: *mut fuse_args, fs: *mut *mut fuse_fs) -> *mut fuse_fs>,
    pub next: *mut fuse_module,
    pub so: *mut fusemod_so,
    pub ctr: c_int,
}

Filesystem module

Filesystem modules are registered with the FUSE_REGISTER_MODULE() macro.

If the "-omodules=modname:..." option is present, filesystem objects are created and pushed onto the stack with the 'factory' function.

Fields

name: *const c_char

Name of filesystem

factory: Option<unsafe extern "C" fn(args: *mut fuse_args, fs: *mut *mut fuse_fs) -> *mut fuse_fs>

Factory for creating filesystem objects

The function may use and remove options from 'args' that belong to this module.

For now the 'fs' vector always contains exactly one filesystem. This is the filesystem which will be below the newly created filesystem in the stack.

@param args the command line arguments @param fs NULL terminated filesystem object vector @return the new filesystem object

next: *mut fuse_moduleso: *mut fusemod_soctr: c_int

Trait Implementations

impl Clone for fuse_module[src]

impl Copy for fuse_module[src]

impl Debug for fuse_module[src]

impl Default for fuse_module[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.