#[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,
}Expand description
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_charName 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_module§so: *mut fusemod_so§ctr: c_intTrait Implementations§
Source§impl Clone for fuse_module
impl Clone for fuse_module
Source§fn clone(&self) -> fuse_module
fn clone(&self) -> fuse_module
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 fuse_module
impl Debug for fuse_module
Source§impl Default for fuse_module
impl Default for fuse_module
impl Copy for fuse_module
Auto Trait Implementations§
impl Freeze for fuse_module
impl RefUnwindSafe for fuse_module
impl !Send for fuse_module
impl !Sync for fuse_module
impl Unpin for fuse_module
impl UnwindSafe for fuse_module
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