pub enum File {
    Tokio(File),
    Uring(File),
}
Expand description

An adapter enum to support both tokio and tokio-uring asynchronous File.

Variants§

§

Tokio(File)

Tokio asynchronous File.

§

Uring(File)

Tokio-uring asynchronous File.

Implementations§

Asynchronously open a file.

Asynchronously read data at offset into the buffer.

Asynchronously read data at offset into buffers.

Asynchronously write data at offset from the buffer.

Asynchronously write data at offset from buffers.

Get metadata about the file.

Try to clone the file object.

Trait Implementations§

Extracts the raw file descriptor. Read more
Read bytes from this file at offset into the given slice in asynchronous mode. Read more
Asynchronous version of FileReadWriteVolatile::read_vectored_at_volatile, to read data into FileVolatileSlice buffers. Read more
Asynchronous version of FileReadWriteVolatile::write_at_volatile, to write data from a FileVolatileSlice buffer.
Asynchronous version of FileReadWriteVolatile::write_vectored_at_volatile, to write data from FileVolatileSlice buffers.
Formats the value using the given formatter. 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.