Enum rustix::thread::NanosleepRelativeResult [−][src]
Expand description
A return type for nanosleep
and clock_nanosleep_relative
.
Variants
Ok
The sleep completed normally.
Interrupted(Timespec)
Tuple Fields
0: Timespec
The sleep was interrupted, the remaining time is returned.
Err(Error)
Tuple Fields
0: Error
An invalid time value was provided.
Trait Implementations
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
Mutably borrows from an owned value. Read more