[−][src]Enum forest_vm::ExitCode
ExitCode defines the exit code from the VM execution
Variants
Indicates failure to find an actor in the state tree.
Indicates failure to find the code for an actor.
Indicates failure to find a method in an actor.
Indicates syntactically invalid parameters for a method.
Indicates a message sender has insufficient funds for a message's execution.
Indicates a message invocation out of sequence.
Indicates message execution (including subcalls) used more gas than the specified limit.
Indicates a message execution is forbidden for the caller.
Indicates actor code performed a disallowed operation. Disallowed operations include:
- mutating state outside of a state acquisition block
- failing to invoke caller validation
- aborting with a reserved exit code (including success or a system error).
Indicates an invalid argument passed to a runtime method.
Indicates an object failed to de/serialize for storage.
Reserved exit codes, do not use.
Indicates something broken within the VM.
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.
Implementations
impl ExitCode
[src]
pub fn is_success(self) -> bool
[src]
returns true if the exit code was a success
pub fn is_error(self) -> bool
[src]
returns true if exited with an error code
pub fn allows_state_update(self) -> bool
[src]
returns true if the execution was successful
Trait Implementations
impl Clone for ExitCode
[src]
impl Copy for ExitCode
[src]
impl Debug for ExitCode
[src]
impl<'de> Deserialize<'de> for ExitCode
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Eq for ExitCode
[src]
impl FromPrimitive for ExitCode
[src]
fn from_i64(n: i64) -> Option<Self>
[src]
fn from_u64(n: u64) -> Option<Self>
[src]
fn from_isize(n: isize) -> Option<Self>
[src]
fn from_i8(n: i8) -> Option<Self>
[src]
fn from_i16(n: i16) -> Option<Self>
[src]
fn from_i32(n: i32) -> Option<Self>
[src]
fn from_i128(n: i128) -> Option<Self>
[src]
fn from_usize(n: usize) -> Option<Self>
[src]
fn from_u8(n: u8) -> Option<Self>
[src]
fn from_u16(n: u16) -> Option<Self>
[src]
fn from_u32(n: u32) -> Option<Self>
[src]
fn from_u128(n: u128) -> Option<Self>
[src]
fn from_f32(n: f32) -> Option<Self>
[src]
fn from_f64(n: f64) -> Option<Self>
[src]
impl PartialEq<ExitCode> for ExitCode
[src]
impl Serialize for ExitCode
[src]
impl StructuralEq for ExitCode
[src]
impl StructuralPartialEq for ExitCode
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,