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§
Provided Methods§
Sourcefn send_empty(&mut self, unique: u64) -> Result<()>
 
fn send_empty(&mut self, unique: u64) -> Result<()>
Send an empty reply.
Sourcefn send_arg<T: Debug + IntoBytes + Immutable + KnownLayout>(
    &mut self,
    unique: u64,
    arg: T,
) -> Result<()>
 
fn send_arg<T: Debug + IntoBytes + Immutable + KnownLayout>( &mut self, unique: u64, arg: T, ) -> Result<()>
Send a reply with a struct as an argument.
Sourcefn send_data(&mut self, unique: u64, data: &[u8]) -> Result<()>
 
fn send_data(&mut self, unique: u64, data: &[u8]) -> Result<()>
Send a reply with arbitrary data.
Sourcefn send_arg_data<T: Debug + IntoBytes + Immutable + KnownLayout>(
    &mut self,
    unique: u64,
    arg: T,
    data: &[u8],
) -> Result<()>
 
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.
Sourcefn send_string(&mut self, unique: u64, value: LxString) -> Result<()>
 
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.