pub struct TimeoutSpec {
pub duration: Option<Duration>,
pub count: u32,
}Expand description
Spécification d’une op TIMEOUT : durée et/ou seuil de complétions.
duration: échéance temporelle (relative, ou absolue avecTimeoutFlags::ABS).None⇒ timeout purement basé sur le compte.count: nombre de CQE après lequel le timeout se déclenche (offdu SQE).0⇒ timeout purement temporel.
Fields§
§duration: Option<Duration>Échéance temporelle (__kernel_timespec).
count: u32Seuil de complétions (off).
Implementations§
Source§impl TimeoutSpec
impl TimeoutSpec
Trait Implementations§
Source§impl Clone for TimeoutSpec
impl Clone for TimeoutSpec
Source§fn clone(&self) -> TimeoutSpec
fn clone(&self) -> TimeoutSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TimeoutSpec
Source§impl Debug for TimeoutSpec
impl Debug for TimeoutSpec
Source§impl Default for TimeoutSpec
impl Default for TimeoutSpec
Source§fn default() -> TimeoutSpec
fn default() -> TimeoutSpec
Returns the “default value” for a type. Read more
impl Eq for TimeoutSpec
Source§impl PartialEq for TimeoutSpec
impl PartialEq for TimeoutSpec
impl StructuralPartialEq for TimeoutSpec
Auto Trait Implementations§
impl Freeze for TimeoutSpec
impl RefUnwindSafe for TimeoutSpec
impl Send for TimeoutSpec
impl Sync for TimeoutSpec
impl Unpin for TimeoutSpec
impl UnsafeUnpin for TimeoutSpec
impl UnwindSafe for TimeoutSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more