Enum rustix::thread::NanosleepRelativeResult
source · pub enum NanosleepRelativeResult {
Ok,
Interrupted(Timespec),
Err(Errno),
}
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§
source§impl Clone for NanosleepRelativeResult
impl Clone for NanosleepRelativeResult
source§fn clone(&self) -> NanosleepRelativeResult
fn clone(&self) -> NanosleepRelativeResult
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for NanosleepRelativeResult
impl RefUnwindSafe for NanosleepRelativeResult
impl Send for NanosleepRelativeResult
impl Sync for NanosleepRelativeResult
impl Unpin for NanosleepRelativeResult
impl UnwindSafe for NanosleepRelativeResult
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