Enum vm::ContractCreateResult
source · [−]pub enum ContractCreateResult {
Created(Address, U256),
Failed,
Reverted(U256, ReturnData),
}
Expand description
Result of externalities create function.
Variants
Created(Address, U256)
Returned when creation was successfull. Contains an address of newly created contract and gas left.
Failed
Returned when contract creation failed. VM doesn’t have to know the reason.
Reverted(U256, ReturnData)
Reverted with REVERT.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ContractCreateResult
impl Send for ContractCreateResult
impl Sync for ContractCreateResult
impl Unpin for ContractCreateResult
impl UnwindSafe for ContractCreateResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more