Struct libfuse_sys::fuse_lowlevel::fuse_chan_ops
source · [−]#[repr(C)]pub struct fuse_chan_ops {
pub receive: Option<unsafe extern "C" fn(chp: *mut *mut fuse_chan, buf: *mut c_char, size: size_t) -> c_int>,
pub send: Option<unsafe extern "C" fn(ch: *mut fuse_chan, iov: *const iovec, count: size_t) -> c_int>,
pub destroy: Option<unsafe extern "C" fn(ch: *mut fuse_chan)>,
}
Expand description
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: size_t) -> 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: size_t) -> 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
sourceimpl Clone for fuse_chan_ops
impl Clone for fuse_chan_ops
sourcefn clone(&self) -> fuse_chan_ops
fn clone(&self) -> fuse_chan_ops
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for fuse_chan_ops
impl Debug for fuse_chan_ops
sourceimpl Default for fuse_chan_ops
impl Default for fuse_chan_ops
sourcefn default() -> fuse_chan_ops
fn default() -> fuse_chan_ops
Returns the “default value” for a type. Read more
impl Copy for fuse_chan_ops
Auto Trait Implementations
impl RefUnwindSafe for fuse_chan_ops
impl Send for fuse_chan_ops
impl Sync for fuse_chan_ops
impl Unpin for fuse_chan_ops
impl UnwindSafe for fuse_chan_ops
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more