Enum rustix::thread::NanosleepRelativeResult
#[must_use]
pub enum NanosleepRelativeResult {
Ok,
Interrupted(Timespec),
Err(io::Error),
}
Documentation
A return type for nanosleep
and clock_nanosleep_relative
.
Variants
Ok
The sleep completed normally.
Trait Implementations
impl Clone for NanosleepRelativeResult
fn clone(&Self) -> NanosleepRelativeResult
impl Debug for NanosleepRelativeResult
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
Auto Trait Implementations
impl RefUnwindSafe for NanosleepRelativeResult
impl Send for NanosleepRelativeResult
impl Sync for NanosleepRelativeResult
impl Unpin for NanosleepRelativeResult
impl UnwindSafe for NanosleepRelativeResult
Blanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T