Enum rustix::thread::NanosleepRelativeResult
source · [−]Available on crate feature
thread
only.Expand description
A return type for nanosleep
and clock_nanosleep_relative
.
Variants
Ok
The sleep completed normally.
Interrupted(Timespec)
The sleep was interrupted, the remaining time is returned.
Err(Errno)
An invalid time value was provided.
Trait Implementations
sourceimpl Clone for NanosleepRelativeResult
impl Clone for NanosleepRelativeResult
sourcefn clone(&self) -> NanosleepRelativeResult
fn clone(&self) -> NanosleepRelativeResult
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more