[−][src]Struct io_uring::opcode::Timeout
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 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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,