pub enum OsError {
Show 20 variants
NotEnoughRam,
OutOfMemory,
StackOverflow,
KernelStackOverflow,
KernelGuardCrashed,
NoSchedulableThreads,
InternalError,
BadThreadState,
OutOfThreads,
DoubleFree,
BadParams,
NestedInhibitTooDeep,
Arithmetic,
Panic,
CannotYield,
OxideEventOverflow,
StaticDropped,
StaticBorrow,
UnwrapError,
UnwrapNone,
}
Variants§
NotEnoughRam
There is not enough memory to allocate a heap.
OutOfMemory
Ran out of memory for dynamic allocation.
StackOverflow
A thread has overflowed its allocated stack.
KernelStackOverflow
An interrupt or other kernel routine has overflowed its allocated stack.
KernelGuardCrashed
A kernel memory guard has been corrupted
NoSchedulableThreads
It was impossible to schedule a thread for execution, because all threads have died or are deadlocked.
InternalError
Some kind of ‘impossible’ internal error condition has arisen…
BadThreadState
An attempt to make an illegal thread state change has taken place
OutOfThreads
The maximum number of threads has been reached
DoubleFree
Call to free a block of memory twice
BadParams
Bad parameters were passed to a system call
NestedInhibitTooDeep
Calls to inhibit sleep/standby nested too deep
Arithmetic
Arithmetic overflow/underflow
Panic
A call to the default panic!() handler was made
CannotYield
A call to yield() was made that is not permitted (typically, yield while interrupts are disabled.)
OxideEventOverflow
The event queue for Oxide events overflowed
StaticDropped
You dropped a supposedly undroppable StaticWrap
StaticBorrow
You violated the borrowing rules of a StaticWrap
UnwrapError
The application called panic_if_error!
on an Error
UnwrapNone
The application called panic_if_none!
on a None