Enum gluon_vm::Error [−]
pub enum Error { Dead, UndefinedBinding(String), UndefinedField(ArcType, String), TypeAlreadyExists(String), GlobalAlreadyExists(Symbol), MetadataDoesNotExist(String), WrongType(ArcType, ArcType), OutOfMemory { limit: usize, needed: usize, }, StackOverflow(VmIndex), Message(String), Interrupted, Panic(String, Option<Stacktrace>), }
Representation of all possible errors that can occur when interacting with the vm
crate
Variants
Dead
UndefinedBinding(String)
UndefinedField(ArcType, String)
TypeAlreadyExists(String)
GlobalAlreadyExists(Symbol)
MetadataDoesNotExist(String)
WrongType(ArcType, ArcType)
OutOfMemory
Fields of OutOfMemory
limit: usize | |
needed: usize |
StackOverflow(VmIndex)
Message(String)
Interrupted
Panic(String, Option<Stacktrace>)
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Error
[src]
impl PartialEq for Error
fn eq(&self, other: &Error) -> bool
[src]
fn eq(&self, other: &Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Error) -> bool
[src]
fn ne(&self, other: &Error) -> bool
This method tests for !=
.
impl Display for Error
impl Display for Error
impl Error for Error
impl Error for Error
fn description(&self) -> &str
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<String> for Error
impl From<String> for Error