pub enum PreemptRtError {
Errno(c_int),
UnknownScheduler(c_int),
PriorityAboveMax(c_int, c_int),
PriorityBelowMin(c_int, c_int),
NonLinuxPlatform(&'static str),
}Expand description
PreemptRt error type. When libc functions return -1, errno will be fetched via libc.
Variants§
Errno(c_int)
UnknownScheduler(c_int)
PriorityAboveMax(c_int, c_int)
PriorityBelowMin(c_int, c_int)
NonLinuxPlatform(&'static str)
Trait Implementations§
Source§impl Debug for PreemptRtError
impl Debug for PreemptRtError
Source§impl Display for PreemptRtError
impl Display for PreemptRtError
Source§impl Error for PreemptRtError
impl Error for PreemptRtError
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()
Auto Trait Implementations§
impl Freeze for PreemptRtError
impl RefUnwindSafe for PreemptRtError
impl Send for PreemptRtError
impl Sync for PreemptRtError
impl Unpin for PreemptRtError
impl UnsafeUnpin for PreemptRtError
impl UnwindSafe for PreemptRtError
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