[][src]Struct libfuse_sys::fuse::fuse_buf

#[repr(C)]pub struct fuse_buf {
    pub size: usize,
    pub flags: fuse_buf_flags,
    pub mem: *mut c_void,
    pub fd: c_int,
    pub pos: off_t,
}

Single data buffer

Generic data buffer for I/O, extended attributes, etc... Data may be supplied as a memory pointer or as a file descriptor

Fields

size: usize

Size of data in bytes

flags: fuse_buf_flags

Buffer flags

mem: *mut c_void

Memory pointer

Used unless FUSE_BUF_IS_FD flag is set.

fd: c_int

File descriptor

Used if FUSE_BUF_IS_FD flag is set.

pos: off_t

File position

Used if FUSE_BUF_FD_SEEK flag is set.

Trait Implementations

impl Default for fuse_buf[src]

Auto Trait Implementations

impl RefUnwindSafe for fuse_buf

impl !Send for fuse_buf

impl !Sync for fuse_buf

impl Unpin for fuse_buf

impl UnwindSafe for fuse_buf

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, 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.