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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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