#[repr(transparent)]
pub struct ExitCode { /* private fields */ }
Expand description

ExitCode defines the exit code from the VM invocation.

Implementations

Returns true if the exit code indicates success.

Returns true if the error code is in the range of exit codes reserved for the VM (including Ok).

The code indicating successful execution.

Indicates the message sender doesn’t exist.

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.

Indicates failure to find a method in an actor.

Indicates the message receiver trapped (panicked).

Indicates the message receiver doesn’t exist and can’t be automatically created

Indicates the message sender didn’t have the requisite funds.

Indicates message execution (including subcalls) used more gas than the specified limit.

Indicates the message receiver aborted with a reserved exit code.

Indicates an internal VM assertion failed.

Indicates the actor returned a block handle that doesn’t exist

The lowest exit code that an actor may abort with.

Indicates a method parameter is invalid.

Indicates a requested resource does not exist.

Indicates an action is disallowed.

Indicates a balance of funds is insufficient.

Indicates an actor’s internal state is invalid.

Indicates de/serialization failure within actor code.

Indicates the actor cannot handle this message.

Indicates the actor failed with an unspecified error.

Indicates the actor failed a user-level assertion

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.