pub enum ApiError {
Runtime(RuntimeError),
Task(TaskError),
InvalidInput,
OperationNotSupported,
PriorityUpdateFailed,
AffinityUpdateFailed,
}Expand description
Errors owned by the public ArceOS API facade.
Variants§
Runtime(RuntimeError)
A runtime-owned console operation failed.
Task(TaskError)
A scheduler operation failed in the task domain.
InvalidInput
A public API argument is outside its accepted domain.
OperationNotSupported
The selected object or policy does not support this operation.
PriorityUpdateFailed
The scheduler rejected a priority update.
AffinityUpdateFailed
The scheduler rejected an affinity update.
Trait Implementations§
impl Copy for ApiError
impl Eq for ApiError
Source§impl Error for ApiError
impl Error for ApiError
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 From<RuntimeError> for ApiError
impl From<RuntimeError> for ApiError
Source§fn from(source: RuntimeError) -> Self
fn from(source: RuntimeError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for ApiError
Auto Trait Implementations§
impl Freeze for ApiError
impl RefUnwindSafe for ApiError
impl Send for ApiError
impl Sync for ApiError
impl Unpin for ApiError
impl UnsafeUnpin for ApiError
impl UnwindSafe for ApiError
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