pub enum SleepError {
Interrupted {
remaining: Duration,
},
Other(Errno),
}Expand description
Erreur spécialisée de clock_nanosleep.
Variants§
Interrupted
Le sommeil relatif a été interrompu ; le kernel a fourni le reliquat.
Other(Errno)
Toute autre erreur renvoyée telle quelle.
Trait Implementations§
Source§impl Clone for SleepError
impl Clone for SleepError
Source§fn clone(&self) -> SleepError
fn clone(&self) -> SleepError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SleepError
Source§impl Debug for SleepError
impl Debug for SleepError
Source§impl Display for SleepError
impl Display for SleepError
impl Eq for SleepError
Source§impl Error for SleepError
impl Error for SleepError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for SleepError
impl PartialEq for SleepError
impl StructuralPartialEq for SleepError
Auto Trait Implementations§
impl Freeze for SleepError
impl RefUnwindSafe for SleepError
impl Send for SleepError
impl Sync for SleepError
impl Unpin for SleepError
impl UnsafeUnpin for SleepError
impl UnwindSafe for SleepError
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