pub(crate) struct WaitSpec {
pub(crate) nonblock: bool,
pub(crate) deadline_ns: Option<u64>,
}Expand description
Blocking policy of one syscall, from the common flags/timeout_ns pair.
Fields§
§nonblock: boolIPC_NONBLOCK: never block, EAGAIN instead.
deadline_ns: Option<u64>Absolute deadline on scheduler_clock_ns, or None (no timeout).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for WaitSpec
impl Freeze for WaitSpec
impl Move for WaitSpec
impl RefUnwindSafe for WaitSpec
impl Send for WaitSpec
impl Sync for WaitSpec
impl Unpin for WaitSpec
impl UnsafeUnpin for WaitSpec
impl UnwindSafe for WaitSpec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more