Enum forest_actor::ExitCode [−][src]
#[repr(u64)] pub enum ExitCode {}Show variants
Ok, SysErrSenderInvalid, SysErrSenderStateInvalid, SysErrInvalidMethod, SysErrActorPanic, SysErrInvalidReceiver, SysErrInsufficientFunds, SysErrOutOfGas, SysErrForbidden, SysErrIllegalActor, SysErrIllegalArgument, SysErrReserved2, SysErrReserved3, SysErrReserved4, SysErrReserved5, SysErrReserved6, ErrIllegalArgument, ErrNotFound, ErrForbidden, ErrInsufficientFunds, ErrIllegalState, ErrSerialization, ErrTooManyProveCommits, ErrPlaceholder,
Expand description
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.
Used for catching panics currently. (marked as unused/SysErrReserved1 in go impl though)
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.
Reserved exit codes, do not use.
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.
Power actor specific exit code.
Implementations
impl ExitCode
[src]
impl ExitCode
[src]pub fn is_success(self) -> bool
[src]
pub fn is_success(self) -> bool
[src]returns true if the exit code was a success
Trait Implementations
impl<'de> Deserialize<'de> for ExitCode
[src]
impl<'de> Deserialize<'de> for ExitCode
[src]pub fn deserialize<D>(
deserializer: D
) -> Result<ExitCode, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
pub fn deserialize<D>(
deserializer: D
) -> Result<ExitCode, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl FromPrimitive for ExitCode
[src]
impl FromPrimitive for ExitCode
[src]pub fn from_i64(n: i64) -> Option<ExitCode>
[src]
pub fn from_i64(n: i64) -> Option<ExitCode>
[src]Converts an i64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
pub fn from_u64(n: u64) -> Option<ExitCode>
[src]
pub fn from_u64(n: u64) -> Option<ExitCode>
[src]Converts an u64
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_isize(n: isize) -> Option<Self>
[src]
fn from_isize(n: isize) -> Option<Self>
[src]Converts an isize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_i8(n: i8) -> Option<Self>
[src]
fn from_i8(n: i8) -> Option<Self>
[src]Converts an i8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_i16(n: i16) -> Option<Self>
[src]
fn from_i16(n: i16) -> Option<Self>
[src]Converts an i16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_i32(n: i32) -> Option<Self>
[src]
fn from_i32(n: i32) -> Option<Self>
[src]Converts an i32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_i128(n: i128) -> Option<Self>
[src]
fn from_i128(n: i128) -> Option<Self>
[src]Converts an i128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_usize(n: usize) -> Option<Self>
[src]
fn from_usize(n: usize) -> Option<Self>
[src]Converts a usize
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_u8(n: u8) -> Option<Self>
[src]
fn from_u8(n: u8) -> Option<Self>
[src]Converts an u8
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_u16(n: u16) -> Option<Self>
[src]
fn from_u16(n: u16) -> Option<Self>
[src]Converts an u16
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_u32(n: u32) -> Option<Self>
[src]
fn from_u32(n: u32) -> Option<Self>
[src]Converts an u32
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
fn from_u128(n: u128) -> Option<Self>
[src]
fn from_u128(n: u128) -> Option<Self>
[src]Converts an u128
to return an optional value of this type. If the
value cannot be represented by this type, then None
is returned. Read more
impl Serialize for ExitCode
[src]
impl Serialize for ExitCode
[src]pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]Serialize this value into the given Serde serializer. Read more
impl Copy for ExitCode
[src]
impl Eq 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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,