pub enum SchedError {
InvalidPriority {
priority: u8,
},
InvalidCpuId {
cpu: usize,
},
TaskNotFound {
id: u64,
},
CpuOffline {
cpu: usize,
},
InvalidAffinity,
QueueEmpty,
AlreadyScheduled,
}Expand description
Scheduler-specific errors
Variants§
InvalidPriority
Fields
§
priority: u8InvalidCpuId
Fields
§
cpu: usizeTaskNotFound
Fields
§
id: u64CpuOffline
Fields
§
cpu: usizeInvalidAffinity
QueueEmpty
AlreadyScheduled
Trait Implementations§
Source§impl Clone for SchedError
impl Clone for SchedError
Source§fn clone(&self) -> SchedError
fn clone(&self) -> SchedError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchedError
impl Debug for SchedError
Source§impl From<SchedError> for KernelError
impl From<SchedError> for KernelError
Source§fn from(err: SchedError) -> Self
fn from(err: SchedError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SchedError
impl PartialEq for SchedError
impl Copy for SchedError
impl Eq for SchedError
impl StructuralPartialEq for SchedError
Auto Trait Implementations§
impl Freeze for SchedError
impl RefUnwindSafe for SchedError
impl Send for SchedError
impl Sync for SchedError
impl Unpin for SchedError
impl UnwindSafe for SchedError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)