[][src]Struct libfuse_sys::fuse_lowlevel::fuse_chan_ops

#[repr(C)]pub struct fuse_chan_ops {
    pub receive: Option<unsafe extern "C" fn(chp: *mut *mut fuse_chan, buf: *mut c_char, size: usize) -> c_int>,
    pub send: Option<unsafe extern "C" fn(ch: *mut fuse_chan, iov: *const iovec, count: usize) -> c_int>,
    pub destroy: Option<unsafe extern "C" fn(ch: *mut fuse_chan)>,
}

Channel operations

This is used in channel creation

Fields

receive: Option<unsafe extern "C" fn(chp: *mut *mut fuse_chan, buf: *mut c_char, size: usize) -> c_int>

Hook for receiving a raw request

@param ch pointer to the channel @param buf the buffer to store the request in @param size the size of the buffer @return the actual size of the raw request, or -1 on error

send: Option<unsafe extern "C" fn(ch: *mut fuse_chan, iov: *const iovec, count: usize) -> c_int>

Hook for sending a raw reply

A return value of -ENOENT means, that the request was interrupted, and the reply was discarded

@param ch the channel @param iov vector of blocks @param count the number of blocks in vector @return zero on success, -errno on failure

destroy: Option<unsafe extern "C" fn(ch: *mut fuse_chan)>

Destroy the channel

@param ch the channel

Trait Implementations

impl Clone for fuse_chan_ops[src]

impl Copy for fuse_chan_ops[src]

impl Debug for fuse_chan_ops[src]

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