Struct io_uring::opcode::Timeout

source ·
pub struct Timeout { /* private fields */ }
Expand description

Register a timeout operation.

A timeout will trigger a wakeup event on the completion ring for anyone waiting for events. A timeout condition is met when either the specified timeout expires, or the specified number of events have completed. Either condition will trigger the event. The request will complete with -ETIME if the timeout got completed through expiration of the timer, or 0 if the timeout got completed through requests completing on their own. If the timeout was cancelled before it expired, the request will complete with -ECANCELED.

Implementations§

The opcode of the operation. This can be passed to Probe::is_supported to check if this operation is supported with the current kernel.

count may contain a completion event count.

flags may contain types::TimeoutFlags::ABS for an absolute timeout value, or 0 for a relative timeout.

Trait Implementations§

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.