pub struct PollSource<F>(RegisteredSource<F>);
Expand description

Async wrapper for an IO source that uses the FD executor to drive async operations.

Tuple Fields§

§0: RegisteredSource<F>

Implementations§

Create a new PollSource from the given IO source.

Reads from the iosource at file_offset and fill the given vec.

Reads to the given mem at the given offsets from the file starting at file_offset.

Wait for the FD of self to be readable.

Writes from the given vec to the file starting at file_offset.

Writes from the given mem from the given offsets to the file starting at file_offset.

See fallocate(2) for details.

Sync all completed write operations to the backing storage.

Sync all data of completed write operations to the backing storage, avoiding updating extra metadata.

Yields the underlying IO source.

Provides a mutable ref to the underlying IO source.

Provides a ref to the underlying IO source.

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.