pub enum StackError {
UnknownModule,
StackPointerNotFound,
AllocationFailed,
StandbyAllocationFailed,
NoFreeSlot,
InUse,
ThreadManaged,
GenerationMismatch,
LayoutMoveRequired,
InvalidConfiguration,
}Expand description
Errors that can occur during stack management operations.
Variants§
UnknownModule
The specified module is not known or not configured for stack management.
StackPointerNotFound
No __stack_pointer global was found in the module.
AllocationFailed
Dynamic stack allocation failed.
StandbyAllocationFailed
Standby stack allocation failed; the current instance remains valid.
NoFreeSlot
No free slot available in the fixed arena (multi-memory only).
InUse
The stack is currently in use and cannot be released.
ThreadManaged
The stack is managed by wasi_thread_start and cannot be released.
GenerationMismatch
The generation number does not match the expected value.
LayoutMoveRequired
A memory layout move was required during an active protected call.
InvalidConfiguration
The stack configuration is invalid (e.g., conflicting options).
Trait Implementations§
Source§impl Clone for StackError
impl Clone for StackError
impl Copy for StackError
Source§impl Debug for StackError
impl Debug for StackError
Source§impl Display for StackError
impl Display for StackError
impl Eq for StackError
Source§impl Error for StackError
Available on crate feature std only.
impl Error for StackError
Available on crate feature
std only.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()
Source§impl PartialEq for StackError
impl PartialEq for StackError
impl StructuralPartialEq for StackError
Auto Trait Implementations§
impl Freeze for StackError
impl RefUnwindSafe for StackError
impl Send for StackError
impl Sync for StackError
impl Unpin for StackError
impl UnsafeUnpin for StackError
impl UnwindSafe for StackError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.