pub enum Writer<'a, S: BitmapSlice = ()> {
    FuseDev(FuseDevWriter<'a, S>),
    VirtioFs(VirtioFsWriter<'a, S>),
    Noop(PhantomData<&'a S>),
}
Expand description

Writer to send reply message to ’/dev/fuse` or virtiofs queue.

Variants§

§

FuseDev(FuseDevWriter<'a, S>)

Writer for FuseDev transport driver.

§

VirtioFs(VirtioFsWriter<'a, S>)

Writer for virtiofs transport driver.

§

Noop(PhantomData<&'a S>)

Writer for Noop transport driver.

Implementations§

Write data to the descriptor chain buffer from a File at offset off.

Return the number of bytes written to the descriptor chain buffer.

Split this Writer into two at the given offset in the DescriptorChain buffer.

After the split, self will be able to write up to offset bytes while the returned Writer can write up to available_bytes() - offset bytes. Return an error if offset > self.available_bytes().

Return number of bytes available for writing.

May return an error if the combined lengths of all the buffers in the DescriptorChain would cause an overflow.

Return number of bytes already written to the descriptor chain buffer.

Commit all internal buffers of self and others

Write data from a buffer into this writer in asynchronous mode.

Write data from two buffers into this writer in asynchronous mode.

Write data from three buffers into this writer in asynchronous mode.

Attempt to write an entire buffer into this writer in asynchronous mode.

Asynchronously write data to the descriptor chain buffer from a File at offset off.

Return the number of bytes written to the descriptor chain buffer.

Commit all internal buffers of self and others

Trait Implementations§

Converts to this type from the input type.
Converts to this type from the input type.
Write a buffer into this writer, returning how many bytes were written. Read more
Like write, except that it writes from a slice of buffers. Read more
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
🔬This is a nightly-only experimental API. (can_vector)
Determines if this Writer has an efficient write_vectored implementation. Read more
Attempts to write an entire buffer into this writer. Read more
🔬This is a nightly-only experimental API. (write_all_vectored)
Attempts to write multiple buffers into this writer. Read more
Writes a formatted string into this writer, returning any error encountered. Read more
Creates a “by reference” adapter for this instance of Write. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.