fuse

Trait ReplySender

Source
pub trait ReplySender {
    // Required method
    fn send(&mut self, bufs: &[IoSlice<'_>]) -> Result<()>;

    // Provided methods
    fn send_empty(&mut self, unique: u64) -> Result<()> { ... }
    fn send_arg<T: Debug + IntoBytes + Immutable + KnownLayout>(
        &mut self,
        unique: u64,
        arg: T,
    ) -> Result<()> { ... }
    fn send_error(&mut self, unique: u64, error: i32) -> Result<()> { ... }
    fn send_data(&mut self, unique: u64, data: &[u8]) -> Result<()> { ... }
    fn send_arg_data<T: Debug + IntoBytes + Immutable + KnownLayout>(
        &mut self,
        unique: u64,
        arg: T,
        data: &[u8],
    ) -> Result<()> { ... }
    fn send_string(&mut self, unique: u64, value: LxString) -> Result<()> { ... }
}
Expand description

Trait used by objects that send FUSE replies to the kernel.

Required Methods§

Source

fn send(&mut self, bufs: &[IoSlice<'_>]) -> Result<()>

Send the specified buffers to the kernel.

Provided Methods§

Source

fn send_empty(&mut self, unique: u64) -> Result<()>

Send an empty reply.

Source

fn send_arg<T: Debug + IntoBytes + Immutable + KnownLayout>( &mut self, unique: u64, arg: T, ) -> Result<()>

Send a reply with a struct as an argument.

Source

fn send_error(&mut self, unique: u64, error: i32) -> Result<()>

Send an error reply.

Source

fn send_data(&mut self, unique: u64, data: &[u8]) -> Result<()>

Send a reply with arbitrary data.

Source

fn send_arg_data<T: Debug + IntoBytes + Immutable + KnownLayout>( &mut self, unique: u64, arg: T, data: &[u8], ) -> Result<()>

Send a reply with a struct argument and arbitrary data.

Source

fn send_string(&mut self, unique: u64, value: LxString) -> Result<()>

Send a string reply.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§