fuse_file_info

Struct fuse_file_info 

Source
#[repr(C)]
pub struct fuse_file_info { pub flags: c_int, pub fh_old: c_ulong, pub writepage: c_int, pub _bitfield_align_1: [u32; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4]>, pub fh: u64, pub lock_owner: u64, }
Expand description

Information about open files

Changed in version 2.5

Fields§

§flags: c_int

Open flags. Available in open() and release()

§fh_old: c_ulong

Old file handle, don’t use

§writepage: c_int

In case of a write operation indicates if this was caused by a writepage

§_bitfield_align_1: [u32; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 4]>§fh: u64

File handle. May be filled in by filesystem in open(). Available in all other file operations

§lock_owner: u64

Lock owner id. Available in locking operations and flush

Implementations§

Source§

impl fuse_file_info

Source

pub fn direct_io(&self) -> c_uint

Source

pub fn set_direct_io(&mut self, val: c_uint)

Source

pub fn keep_cache(&self) -> c_uint

Source

pub fn set_keep_cache(&mut self, val: c_uint)

Source

pub fn flush(&self) -> c_uint

Source

pub fn set_flush(&mut self, val: c_uint)

Source

pub fn nonseekable(&self) -> c_uint

Source

pub fn set_nonseekable(&mut self, val: c_uint)

Source

pub fn flock_release(&self) -> c_uint

Source

pub fn set_flock_release(&mut self, val: c_uint)

Source

pub fn padding(&self) -> c_uint

Source

pub fn set_padding(&mut self, val: c_uint)

Source

pub fn new_bitfield_1( direct_io: c_uint, keep_cache: c_uint, flush: c_uint, nonseekable: c_uint, flock_release: c_uint, padding: c_uint, ) -> __BindgenBitfieldUnit<[u8; 4]>

Trait Implementations§

Source§

impl Default for fuse_file_info

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.