Enum lunatic::LunaticError
source · pub enum LunaticError {
Error(u64),
PermissionDenied,
NameAlreadyRegistered(u64, u64),
}
Expand description
An opaque error returned from host calls.
Host calls can have a big number of failure reasons, and it’s impossible to enumerate all of them. This is especially true for calls that involve compiling raw binary data to WebAssembly modules. Because of this an opaque error ID is returned from host that can be transformed to a string.
Variants§
Error(u64)
PermissionDenied
NameAlreadyRegistered(u64, u64)
A process under this name already exists (node_id, process_id)
Trait Implementations§
source§impl Debug for LunaticError
impl Debug for LunaticError
source§impl Display for LunaticError
impl Display for LunaticError
source§impl Drop for LunaticError
impl Drop for LunaticError
source§impl Error for LunaticError
impl Error for LunaticError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl RefUnwindSafe for LunaticError
impl Send for LunaticError
impl Sync for LunaticError
impl Unpin for LunaticError
impl UnwindSafe for LunaticError
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