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
OkThe sleep completed normally.
Trait Implementations
impl Clone for NanosleepRelativeResult
fn clone(&Self) -> NanosleepRelativeResultimpl Debug for NanosleepRelativeResult
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::ResultAuto Trait Implementations
impl RefUnwindSafe for NanosleepRelativeResultimpl Send for NanosleepRelativeResultimpl Sync for NanosleepRelativeResultimpl Unpin for NanosleepRelativeResultimpl UnwindSafe for NanosleepRelativeResultBlanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T