pub struct FuseDevWriter<'a, S: BitmapSlice = ()> { /* private fields */ }
Expand description

Writer to send FUSE reply to the FUSE driver.

There are a few special properties to follow:

  1. A fuse device request MUST be written to the fuse device in one shot.
  2. If the writer is split, a final commit() MUST be called to issue the device write operation.
  3. Concurrency, caller should not write to the writer concurrently.

Implementations§

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

Return the number of bytes written to the writer.

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

Return the number of bytes written to the writer.

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

Return the number of bytes written to the writer.

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

Write data from a File at offset off to the writer in asynchronous mode.

Return the number of bytes written to the writer.

Commit all internal buffers of the writer and others.

We need this because the lifetime of others is usually shorter than self.

Construct a new Writer.

Split the Writer at the given offset.

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. Returns an error if offset > self.available_bytes().

Compose the FUSE reply message and send the message to /dev/fuse.

Return number of bytes already written to the internal buffer.

Return number of bytes available for writing.

Write an object to the writer.

Write data to the writer from a file descriptor.

Return the number of bytes written to the writer.

Write data to the writer from a File at offset off. Return the number of bytes written to the writer.

Write all data to the writer from a file descriptor.

Trait Implementations§

Formats the value using the given formatter. Read more
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

As this writer can associate multiple writers by splitting, flush() can’t flush them all. Disable it!

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
🔬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.