[][src]Struct libfuse_sys::fuse_lowlevel::fuse_session_ops

#[repr(C)]pub struct fuse_session_ops {
    pub process: Option<unsafe extern "C" fn(data: *mut c_void, buf: *const c_char, len: usize, ch: *mut fuse_chan)>,
    pub exit: Option<unsafe extern "C" fn(data: *mut c_void, val: c_int)>,
    pub exited: Option<unsafe extern "C" fn(data: *mut c_void) -> c_int>,
    pub destroy: Option<unsafe extern "C" fn(data: *mut c_void)>,
}

Session operations

This is used in session creation

Fields

process: Option<unsafe extern "C" fn(data: *mut c_void, buf: *const c_char, len: usize, ch: *mut fuse_chan)>

Hook to process a request (mandatory)

@param data user data passed to fuse_session_new() @param buf buffer containing the raw request @param len request length @param ch channel on which the request was received

exit: Option<unsafe extern "C" fn(data: *mut c_void, val: c_int)>

Hook for session exit and reset (optional)

@param data user data passed to fuse_session_new() @param val exited status (1 - exited, 0 - not exited)

exited: Option<unsafe extern "C" fn(data: *mut c_void) -> c_int>

Hook for querying the current exited status (optional)

@param data user data passed to fuse_session_new() @return 1 if exited, 0 if not exited

destroy: Option<unsafe extern "C" fn(data: *mut c_void)>

Hook for cleaning up the channel on destroy (optional)

@param data user data passed to fuse_session_new()

Trait Implementations

impl Clone for fuse_session_ops[src]

impl Copy for fuse_session_ops[src]

impl Debug for fuse_session_ops[src]

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