fuse

Enum FuseOperation

Source
pub enum FuseOperation {
Show 50 variants Invalid, Lookup { name: LxString, }, Forget { arg: fuse_forget_in, }, GetAttr { arg: fuse_getattr_in, }, SetAttr { arg: fuse_setattr_in, }, ReadLink {}, Symlink { name: LxString, target: LxString, }, MkNod { arg: fuse_mknod_in, name: LxString, }, MkDir { arg: fuse_mkdir_in, name: LxString, }, Unlink { name: LxString, }, RmDir { name: LxString, }, Rename { arg: fuse_rename_in, name: LxString, new_name: LxString, }, Link { arg: fuse_link_in, name: LxString, }, Open { arg: fuse_open_in, }, Read { arg: fuse_read_in, }, Write { arg: fuse_write_in, data: Box<[u8]>, }, StatFs {}, Release { arg: fuse_release_in, }, FSync { arg: fuse_fsync_in, }, SetXAttr { arg: fuse_setxattr_in, name: LxString, value: Box<[u8]>, }, GetXAttr { arg: fuse_getxattr_in, name: LxString, }, ListXAttr { arg: fuse_getxattr_in, }, RemoveXAttr { name: LxString, }, Flush { arg: fuse_flush_in, }, Init { arg: fuse_init_in, }, OpenDir { arg: fuse_open_in, }, ReadDir { arg: fuse_read_in, }, ReleaseDir { arg: fuse_release_in, }, FSyncDir { arg: fuse_fsync_in, }, GetLock { arg: fuse_lk_in, }, SetLock { arg: fuse_lk_in, }, SetLockSleep { arg: fuse_lk_in, }, Access { arg: fuse_access_in, }, Create { arg: fuse_create_in, name: LxString, }, Interrupt { arg: fuse_interrupt_in, }, BMap { arg: fuse_bmap_in, }, Destroy {}, Ioctl { arg: fuse_ioctl_in, data: Box<[u8]>, }, Poll { arg: fuse_poll_in, }, NotifyReply { arg: fuse_notify_retrieve_in, data: Box<[u8]>, }, BatchForget { arg: fuse_batch_forget_in, nodes: Box<[u8]>, }, FAllocate { arg: fuse_fallocate_in, }, ReadDirPlus { arg: fuse_read_in, }, Rename2 { arg: fuse_rename2_in, name: LxString, new_name: LxString, }, LSeek { arg: fuse_lseek_in, }, CopyFileRange { arg: fuse_copy_file_range_in, }, SetupMapping { arg: fuse_setupmapping_in, }, RemoveMapping { arg: fuse_removemapping_in, mappings: Box<[u8]>, }, SyncFs { _arg: fuse_syncfs_in, }, CanonicalPath {},
}
Expand description

Represents a FUSE message and its arguments.

Variants§

§

Invalid

An operation where the header could be parsed, but the remainder of the message could not.

§

Lookup

Fields

§

Forget

Fields

§

GetAttr

§

SetAttr

Fields

§target: LxString
§

MkNod

Fields

§

MkDir

Fields

Fields

§

RmDir

Fields

§

Rename

Fields

§new_name: LxString

Fields

§

Open

Fields

§

Read

Fields

§

Write

Fields

§data: Box<[u8]>
§

StatFs

§

Release

§

FSync

Fields

§

SetXAttr

Fields

§value: Box<[u8]>
§

GetXAttr

§

ListXAttr

§

RemoveXAttr

Fields

§

Flush

Fields

§

Init

Fields

§

OpenDir

Fields

§

ReadDir

Fields

§

ReleaseDir

§

FSyncDir

Fields

§

GetLock

Fields

§

SetLock

Fields

§

SetLockSleep

Fields

§

Access

Fields

§

Create

§

Interrupt

§

BMap

Fields

§

Destroy

§

Ioctl

Fields

§data: Box<[u8]>
§

Poll

Fields

§

NotifyReply

§

BatchForget

Fields

§nodes: Box<[u8]>
§

FAllocate

§

ReadDirPlus

Fields

§

Rename2

Fields

§new_name: LxString
§

LSeek

Fields

§

CopyFileRange

§

SetupMapping

§

RemoveMapping

Fields

§mappings: Box<[u8]>
§

SyncFs

Fields

§

CanonicalPath

Implementations§

Source§

impl FuseOperation

Source

pub fn read(opcode: u32, reader: impl RequestReader) -> Result<Self>

Create a FuseOperation for the specified opcode, reading the arguments from the reader.

Trait Implementations§

Source§

impl Debug for FuseOperation

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. 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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more