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,
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]
pub fn is_success(self) -> bool
[src]
returns true if the exit code was a success
Trait Implementations
impl Clone for ExitCode
[src]
impl Copy for ExitCode
[src]
impl Debug 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]
deserializer: D
) -> Result<ExitCode, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
impl Eq for ExitCode
[src]
impl FromPrimitive for ExitCode
[src]
pub fn from_i64(n: i64) -> Option<ExitCode>
[src]
pub fn from_u64(n: u64) -> Option<ExitCode>
[src]
pub fn from_isize(n: isize) -> Option<Self>
[src]
pub fn from_i8(n: i8) -> Option<Self>
[src]
pub fn from_i16(n: i16) -> Option<Self>
[src]
pub fn from_i32(n: i32) -> Option<Self>
[src]
pub fn from_i128(n: i128) -> Option<Self>
[src]
pub fn from_usize(n: usize) -> Option<Self>
[src]
pub fn from_u8(n: u8) -> Option<Self>
[src]
pub fn from_u16(n: u16) -> Option<Self>
[src]
pub fn from_u32(n: u32) -> Option<Self>
[src]
pub fn from_u128(n: u128) -> Option<Self>
[src]
pub fn from_f32(n: f32) -> Option<Self>
[src]
pub fn from_f64(n: f64) -> Option<Self>
[src]
impl PartialEq<ExitCode> for ExitCode
[src]
pub fn eq(&self, other: &ExitCode) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[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]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
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,
pub 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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,