pub enum ExecutionCostingEntry<'a> {
Show 49 variants
VerifyTxSignatures {
num_signatures: usize,
},
ValidateTxPayload {
size: usize,
},
CheckReference {
event: &'a CheckReferenceEvent<'a>,
},
CheckIntentValidity,
CheckTimestamp,
RunNativeCode {
package_address: &'a PackageAddress,
export_name: &'a str,
input_size: usize,
},
RunWasmCode {
package_address: &'a PackageAddress,
export_name: &'a str,
wasm_execution_units: u32,
},
PrepareWasmCode {
size: usize,
},
BeforeInvoke {
actor: &'a Actor,
input_size: usize,
},
AfterInvoke {
output_size: usize,
},
AllocateNodeId,
CreateNode {
event: &'a CreateNodeEvent<'a>,
},
DropNode {
event: &'a DropNodeEvent<'a>,
},
PinNode {
node_id: &'a NodeId,
},
MoveModule {
event: &'a MoveModuleEvent<'a>,
},
OpenSubstate {
event: &'a OpenSubstateEvent<'a>,
},
ReadSubstate {
event: &'a ReadSubstateEvent<'a>,
},
WriteSubstate {
event: &'a WriteSubstateEvent<'a>,
},
CloseSubstate {
event: &'a CloseSubstateEvent,
},
MarkSubstateAsTransient {
node_id: &'a NodeId,
partition_number: &'a PartitionNumber,
substate_key: &'a SubstateKey,
},
SetSubstate {
event: &'a SetSubstateEvent<'a>,
},
RemoveSubstate {
event: &'a RemoveSubstateEvent<'a>,
},
ScanKeys {
event: &'a ScanKeysEvent<'a>,
},
ScanSortedSubstates {
event: &'a ScanSortedSubstatesEvent<'a>,
},
DrainSubstates {
event: &'a DrainSubstatesEvent<'a>,
},
GetStackId,
GetOwnedNodes,
SwitchStack,
SendToStack {
data_len: usize,
},
SetCallFrameData {
data_len: usize,
},
LockFee,
QueryFeeReserve,
QueryCostingModule,
QueryActor,
QueryTransactionHash,
GenerateRuid,
EmitEvent {
size: usize,
},
EmitLog {
size: usize,
},
EncodeBech32Address,
Panic {
size: usize,
},
Bls12381V1Verify {
size: usize,
},
Bls12381V1AggregateVerify {
sizes: &'a [usize],
},
Bls12381V1FastAggregateVerify {
size: usize,
keys_cnt: usize,
},
Bls12381G2SignatureAggregate {
signatures_cnt: usize,
},
Keccak256Hash {
size: usize,
},
Blake2b256Hash {
size: usize,
},
Ed25519Verify {
size: usize,
},
Secp256k1EcdsaVerify,
Secp256k1EcdsaVerifyAndKeyRecover,
}
Variants§
VerifyTxSignatures
ValidateTxPayload
CheckReference
Fields
§
event: &'a CheckReferenceEvent<'a>
CheckIntentValidity
CheckTimestamp
RunNativeCode
RunWasmCode
PrepareWasmCode
BeforeInvoke
AfterInvoke
AllocateNodeId
CreateNode
Fields
§
event: &'a CreateNodeEvent<'a>
DropNode
Fields
§
event: &'a DropNodeEvent<'a>
PinNode
MoveModule
Fields
§
event: &'a MoveModuleEvent<'a>
OpenSubstate
Fields
§
event: &'a OpenSubstateEvent<'a>
ReadSubstate
Fields
§
event: &'a ReadSubstateEvent<'a>
WriteSubstate
Fields
§
event: &'a WriteSubstateEvent<'a>
CloseSubstate
Fields
§
event: &'a CloseSubstateEvent
MarkSubstateAsTransient
SetSubstate
Fields
§
event: &'a SetSubstateEvent<'a>
RemoveSubstate
Fields
§
event: &'a RemoveSubstateEvent<'a>
ScanKeys
Fields
§
event: &'a ScanKeysEvent<'a>
ScanSortedSubstates
Fields
§
event: &'a ScanSortedSubstatesEvent<'a>
DrainSubstates
Fields
§
event: &'a DrainSubstatesEvent<'a>
GetStackId
GetOwnedNodes
SwitchStack
SendToStack
SetCallFrameData
LockFee
QueryFeeReserve
QueryCostingModule
QueryActor
QueryTransactionHash
GenerateRuid
EmitEvent
EmitLog
EncodeBech32Address
Panic
Bls12381V1Verify
Bls12381V1AggregateVerify
Bls12381V1FastAggregateVerify
Bls12381G2SignatureAggregate
Keccak256Hash
Blake2b256Hash
Ed25519Verify
Secp256k1EcdsaVerify
Secp256k1EcdsaVerifyAndKeyRecover
Implementations§
Source§impl<'a> ExecutionCostingEntry<'a>
impl<'a> ExecutionCostingEntry<'a>
pub fn to_execution_cost_units(&self, ft: &FeeTable) -> u32
Source§impl<'a> ExecutionCostingEntry<'a>
impl<'a> ExecutionCostingEntry<'a>
pub fn to_trace_key(&self) -> String
Trait Implementations§
Source§impl<'a> Debug for ExecutionCostingEntry<'a>
impl<'a> Debug for ExecutionCostingEntry<'a>
Source§impl<'a, '_derivative_strum> From<&'_derivative_strum ExecutionCostingEntry<'a>> for &'static str
impl<'a, '_derivative_strum> From<&'_derivative_strum ExecutionCostingEntry<'a>> for &'static str
Source§fn from(x: &'_derivative_strum ExecutionCostingEntry<'a>) -> &'static str
fn from(x: &'_derivative_strum ExecutionCostingEntry<'a>) -> &'static str
Converts to this type from the input type.
Source§impl<'a> From<ExecutionCostingEntry<'a>> for &'static str
impl<'a> From<ExecutionCostingEntry<'a>> for &'static str
Source§fn from(x: ExecutionCostingEntry<'a>) -> &'static str
fn from(x: ExecutionCostingEntry<'a>) -> &'static str
Converts to this type from the input type.
Source§impl<'a> From<ExecutionCostingEntry<'a>> for ExecutionCostingEntryOwned
impl<'a> From<ExecutionCostingEntry<'a>> for ExecutionCostingEntryOwned
Source§fn from(value: ExecutionCostingEntry<'a>) -> ExecutionCostingEntryOwned
fn from(value: ExecutionCostingEntry<'a>) -> ExecutionCostingEntryOwned
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for ExecutionCostingEntry<'a>
impl<'a> !RefUnwindSafe for ExecutionCostingEntry<'a>
impl<'a> !Send for ExecutionCostingEntry<'a>
impl<'a> !Sync for ExecutionCostingEntry<'a>
impl<'a> Unpin for ExecutionCostingEntry<'a>
impl<'a> !UnwindSafe for ExecutionCostingEntry<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
type Error = <U as ContextualTryFrom<T>>::Error
type Context = <U as ContextualTryFrom<T>>::Context
fn contextual_try_into( self, context: &<U as ContextualTryFrom<T>>::Context, ) -> Result<U, <U as ContextualTryFrom<T>>::Error>
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn 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
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more