Struct fvm_shared::error::ExitCode
source · [−]#[repr(transparent)]pub struct ExitCode { /* private fields */ }Expand description
ExitCode defines the exit code from the VM invocation.
Implementations
sourceimpl ExitCode
impl ExitCode
sourcepub const SYS_SENDER_INVALID: ExitCode = _
pub const SYS_SENDER_INVALID: ExitCode = _
Indicates the message sender doesn’t exist.
sourcepub const SYS_SENDER_STATE_INVALID: ExitCode = _
pub const SYS_SENDER_STATE_INVALID: ExitCode = _
Indicates that the message sender was not in a valid state to send this message. Either:
- The sender’s nonce nonce didn’t match the message nonce.
- The sender didn’t have the funds to cover the message gas.
sourcepub const SYS_INVALID_METHOD: ExitCode = _
pub const SYS_INVALID_METHOD: ExitCode = _
Indicates failure to find a method in an actor.
sourcepub const SYS_ILLEGAL_INSTRUCTION: ExitCode = _
pub const SYS_ILLEGAL_INSTRUCTION: ExitCode = _
Indicates the message receiver trapped (panicked).
sourcepub const SYS_INVALID_RECEIVER: ExitCode = _
pub const SYS_INVALID_RECEIVER: ExitCode = _
Indicates the message receiver doesn’t exist and can’t be automatically created
sourcepub const SYS_INSUFFICIENT_FUNDS: ExitCode = _
pub const SYS_INSUFFICIENT_FUNDS: ExitCode = _
Indicates the message sender didn’t have the requisite funds.
sourcepub const SYS_OUT_OF_GAS: ExitCode = _
pub const SYS_OUT_OF_GAS: ExitCode = _
Indicates message execution (including subcalls) used more gas than the specified limit.
sourcepub const SYS_ILLEGAL_EXIT_CODE: ExitCode = _
pub const SYS_ILLEGAL_EXIT_CODE: ExitCode = _
Indicates the message receiver aborted with a reserved exit code.
sourcepub const SYS_ASSERTION_FAILED: ExitCode = _
pub const SYS_ASSERTION_FAILED: ExitCode = _
Indicates an internal VM assertion failed.
sourcepub const SYS_MISSING_RETURN: ExitCode = _
pub const SYS_MISSING_RETURN: ExitCode = _
Indicates the actor returned a block handle that doesn’t exist
sourcepub const FIRST_USER_EXIT_CODE: u32 = 16u32
pub const FIRST_USER_EXIT_CODE: u32 = 16u32
The lowest exit code that an actor may abort with.
sourcepub const USR_ILLEGAL_ARGUMENT: ExitCode = _
pub const USR_ILLEGAL_ARGUMENT: ExitCode = _
Indicates a method parameter is invalid.
sourcepub const USR_NOT_FOUND: ExitCode = _
pub const USR_NOT_FOUND: ExitCode = _
Indicates a requested resource does not exist.
sourcepub const USR_FORBIDDEN: ExitCode = _
pub const USR_FORBIDDEN: ExitCode = _
Indicates an action is disallowed.
sourcepub const USR_INSUFFICIENT_FUNDS: ExitCode = _
pub const USR_INSUFFICIENT_FUNDS: ExitCode = _
Indicates a balance of funds is insufficient.
sourcepub const USR_ILLEGAL_STATE: ExitCode = _
pub const USR_ILLEGAL_STATE: ExitCode = _
Indicates an actor’s internal state is invalid.
sourcepub const USR_SERIALIZATION: ExitCode = _
pub const USR_SERIALIZATION: ExitCode = _
Indicates de/serialization failure within actor code.
sourcepub const USR_UNHANDLED_MESSAGE: ExitCode = _
pub const USR_UNHANDLED_MESSAGE: ExitCode = _
Indicates the actor cannot handle this message.
sourcepub const USR_UNSPECIFIED: ExitCode = _
pub const USR_UNSPECIFIED: ExitCode = _
Indicates the actor failed with an unspecified error.
sourcepub const USR_ASSERTION_FAILED: ExitCode = _
pub const USR_ASSERTION_FAILED: ExitCode = _
Indicates the actor failed a user-level assertion
Trait Implementations
sourceimpl<'de> Deserialize<'de> for ExitCode
impl<'de> Deserialize<'de> for ExitCode
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for ExitCode
impl Eq for ExitCode
impl StructuralEq for ExitCode
impl StructuralPartialEq for ExitCode
Auto Trait Implementations
impl RefUnwindSafe for ExitCode
impl Send for ExitCode
impl Sync for ExitCode
impl Unpin for ExitCode
impl UnwindSafe for ExitCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more