Enum ceres_executor::ReturnCode [−][src]
#[repr(i32)] pub enum ReturnCode { Success, CalleeTrapped, CalleeReverted, KeyNotFound, BelowSubsistenceThreshold, TransferFailed, NewContractNotFunded, CodeNotFound, NotCallable, LoggingDisabled, UnExpectedReturnCode, }
Variants
API call successful.
The called function trapped and has its state changes reverted. In this case no output buffer is returned.
The called function ran to completion but decided to revert its state. An output buffer is returned when one was supplied.
The passed key does not exist in storage.
Transfer failed because it would have brought the sender’s total balance below the subsistence threshold.
Transfer failed for other reasons. Most probably reserved or locked balance of the sender prevents the transfer.
The newly created contract is below the subsistence threshold after executing its constructor.
No code could be found at the supplied code hash.
The contract that was called is either no contract at all (a plain account) or is a tombstone.
The call to seal_debug_message
had no effect because debug message
recording was disabled.
Unexpected return code
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ReturnCode
impl Send for ReturnCode
impl Sync for ReturnCode
impl Unpin for ReturnCode
impl UnwindSafe for ReturnCode
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more