[][src]Struct io_uring::opcode::Timeout

pub struct Timeout { /* fields omitted */ }

This command will 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.

Methods

impl Timeout[src]

pub const fn new(timespec: *const Timespec) -> Self[src]

pub const CODE: u8[src]

pub const fn count(self, count: u32) -> Self[src]

count may contain a completion event count. If not set, this defaults to 1.

pub const fn flags(self, flags: TimeoutFlags) -> Self[src]

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

pub fn build(self) -> Entry[src]

Trait Implementations

impl Debug for Timeout[src]

Auto Trait Implementations

impl RefUnwindSafe for Timeout

impl !Send for Timeout

impl !Sync for Timeout

impl Unpin for Timeout

impl UnwindSafe for Timeout

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.