pub enum ActorError {
Init,
Handler,
Panic(String),
ResourceExhausted,
WasmTrap(String),
}Variants§
Init
on_start returned Err; actor never entered the running state.
Handler
on_message returned Err; supervisor’s restart policy applies.
Panic(String)
Actor task panicked; String contains the panic display message.
Caught via catch_unwind in the Phase 2 event loop.
ResourceExhausted
WASM actor exhausted its fuel budget.
Treated as Handler-severity: the supervisor applies the configured
restart policy (same behaviour as Handler).
WasmTrap(String)
WASM module trapped (panic, abort, illegal instruction, etc.).
String contains the trap message from the WASM runtime.
Treated as Handler-severity: the supervisor applies the configured
restart policy.
Trait Implementations§
Source§impl Clone for ActorError
impl Clone for ActorError
Source§fn clone(&self) -> ActorError
fn clone(&self) -> ActorError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActorError
impl Debug for ActorError
Source§impl PartialEq for ActorError
impl PartialEq for ActorError
impl Eq for ActorError
impl StructuralPartialEq for ActorError
Auto Trait Implementations§
impl Freeze for ActorError
impl RefUnwindSafe for ActorError
impl Send for ActorError
impl Sync for ActorError
impl Unpin for ActorError
impl UnsafeUnpin for ActorError
impl UnwindSafe for ActorError
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