pub enum RuntimeError {
Irq(IrqError),
Allocation(AllocError),
Task(TaskError),
SerialConfig(ConfigError),
ConsoleHandoff(ConsoleHandoffError),
SerialConsoleBusy,
ConsoleFailedClosed,
SerialNotStarted,
SerialControlBusy,
WouldBlock,
OperationNotSupported,
InvalidCpu {
cpu: usize,
},
}Expand description
Errors owned by the ArceOS runtime layer.
Variants§
Irq(IrqError)
Interrupt discovery or registration failed.
Allocation(AllocError)
Runtime-owned storage allocation failed.
Task(TaskError)
The scheduler rejected a runtime-owned task operation.
SerialConfig(ConfigError)
A UART rejected its requested configuration.
ConsoleHandoff(ConsoleHandoffError)
A platform console ownership transition was requested out of order.
SerialConsoleBusy
Another serial runtime already owns console log routing.
ConsoleFailedClosed
The runtime console handoff failed after early ownership was revoked.
SerialNotStarted
A serial operation requires a running port.
SerialControlBusy
The bounded serial control queue is full.
WouldBlock
A bounded runtime queue has no capacity without waiting.
OperationNotSupported
The selected runtime capability does not support the operation.
InvalidCpu
A CPU index is outside the runtime’s online CPU set.
Trait Implementations§
Source§impl Clone for RuntimeError
impl Clone for RuntimeError
Source§fn clone(&self) -> RuntimeError
fn clone(&self) -> RuntimeError
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 RuntimeError
Source§impl Debug for RuntimeError
impl Debug for RuntimeError
Source§impl Display for RuntimeError
impl Display for RuntimeError
impl Eq for RuntimeError
Source§impl Error for RuntimeError
impl Error for RuntimeError
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<AllocError> for RuntimeError
impl From<AllocError> for RuntimeError
Source§fn from(source: AllocError) -> Self
fn from(source: AllocError) -> Self
Converts to this type from the input type.
Source§impl From<ConfigError> for RuntimeError
impl From<ConfigError> for RuntimeError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<ConsoleHandoffError> for RuntimeError
impl From<ConsoleHandoffError> for RuntimeError
Source§fn from(source: ConsoleHandoffError) -> Self
fn from(source: ConsoleHandoffError) -> Self
Converts to this type from the input type.
Source§impl From<IrqError> for RuntimeError
impl From<IrqError> for RuntimeError
Source§impl From<TaskError> for RuntimeError
impl From<TaskError> for RuntimeError
Source§impl PartialEq for RuntimeError
impl PartialEq for RuntimeError
impl StructuralPartialEq for RuntimeError
Auto Trait Implementations§
impl Freeze for RuntimeError
impl RefUnwindSafe for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl UnsafeUnpin for RuntimeError
impl UnwindSafe for RuntimeError
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