Enum scrypto_test::prelude::RuntimeError
source · pub enum RuntimeError {
KernelError(KernelError),
SystemError(SystemError),
SystemModuleError(SystemModuleError),
SystemUpstreamError(SystemUpstreamError),
VmError(VmError),
ApplicationError(ApplicationError),
}
Expand description
Represents an error when executing a transaction.
Variants§
KernelError(KernelError)
An error occurred within the kernel.
SystemError(SystemError)
An error occurred within the system, notably the ClientApi implementation.
SystemModuleError(SystemModuleError)
An error occurred within a specific system module, like auth, costing and royalty. TODO: merge into SystemError?
SystemUpstreamError(SystemUpstreamError)
An error issued by the system when invoking upstream (such as blueprints, node modules). TODO: merge into SystemError?
VmError(VmError)
An error occurred in the vm layer
ApplicationError(ApplicationError)
An error occurred within application logic, like the RE models.
Trait Implementations§
source§impl CanBeAbortion for RuntimeError
impl CanBeAbortion for RuntimeError
fn abortion(&self) -> Option<&AbortReason>
source§impl<'a, Y, V> ClientActorApi<RuntimeError> for SystemService<'a, Y, V>
impl<'a, Y, V> ClientActorApi<RuntimeError> for SystemService<'a, Y, V>
source§fn actor_get_blueprint_id(&mut self) -> Result<BlueprintId, RuntimeError>
fn actor_get_blueprint_id(&mut self) -> Result<BlueprintId, RuntimeError>
Retrieve the current blueprint id
source§fn actor_get_node_id(&mut self, ref_handle: u32) -> Result<NodeId, RuntimeError>
fn actor_get_node_id(&mut self, ref_handle: u32) -> Result<NodeId, RuntimeError>
Retrieve the current method actor’s node id
source§fn actor_is_feature_enabled(
&mut self,
object_handle: u32,
feature: &str
) -> Result<bool, RuntimeError>
fn actor_is_feature_enabled( &mut self, object_handle: u32, feature: &str ) -> Result<bool, RuntimeError>
Check if a feature is enabled for a given object
source§fn actor_open_field(
&mut self,
object_handle: u32,
field_index: u8,
flags: LockFlags
) -> Result<u32, RuntimeError>
fn actor_open_field( &mut self, object_handle: u32, field_index: u8, flags: LockFlags ) -> Result<u32, RuntimeError>
Open a field in a given object for reading/writing
source§fn actor_emit_event(
&mut self,
event_name: String,
event_data: Vec<u8>,
event_flags: EventFlags
) -> Result<(), RuntimeError>
fn actor_emit_event( &mut self, event_name: String, event_data: Vec<u8>, event_flags: EventFlags ) -> Result<(), RuntimeError>
Emits an event of the current actor
source§impl ClientActorApi<RuntimeError> for TestEnvironment
impl ClientActorApi<RuntimeError> for TestEnvironment
source§fn actor_get_blueprint_id(&mut self) -> Result<BlueprintId, RuntimeError>
fn actor_get_blueprint_id(&mut self) -> Result<BlueprintId, RuntimeError>
Retrieve the current blueprint id
source§fn actor_open_field(
&mut self,
object_handle: ActorStateHandle,
field: FieldIndex,
flags: LockFlags
) -> Result<FieldHandle, RuntimeError>
fn actor_open_field( &mut self, object_handle: ActorStateHandle, field: FieldIndex, flags: LockFlags ) -> Result<FieldHandle, RuntimeError>
Open a field in a given object for reading/writing
source§fn actor_is_feature_enabled(
&mut self,
object_handle: ActorStateHandle,
feature: &str
) -> Result<bool, RuntimeError>
fn actor_is_feature_enabled( &mut self, object_handle: ActorStateHandle, feature: &str ) -> Result<bool, RuntimeError>
Check if a feature is enabled for a given object
source§fn actor_get_node_id(
&mut self,
ref_handle: ActorRefHandle
) -> Result<NodeId, RuntimeError>
fn actor_get_node_id( &mut self, ref_handle: ActorRefHandle ) -> Result<NodeId, RuntimeError>
Retrieve the current method actor’s node id
source§fn actor_emit_event(
&mut self,
event_name: String,
event_data: Vec<u8>,
event_flags: EventFlags
) -> Result<(), RuntimeError>
fn actor_emit_event( &mut self, event_name: String, event_data: Vec<u8>, event_flags: EventFlags ) -> Result<(), RuntimeError>
Emits an event of the current actor
source§impl<'a, Y, V> ClientActorIndexApi<RuntimeError> for SystemService<'a, Y, V>
impl<'a, Y, V> ClientActorIndexApi<RuntimeError> for SystemService<'a, Y, V>
source§fn actor_index_insert(
&mut self,
object_handle: u32,
collection_index: u8,
key: Vec<u8>,
buffer: Vec<u8>
) -> Result<(), RuntimeError>
fn actor_index_insert( &mut self, object_handle: u32, collection_index: u8, key: Vec<u8>, buffer: Vec<u8> ) -> Result<(), RuntimeError>
Inserts an entry into an index
source§fn actor_index_remove(
&mut self,
object_handle: u32,
collection_index: u8,
key: Vec<u8>
) -> Result<Option<Vec<u8>>, RuntimeError>
fn actor_index_remove( &mut self, object_handle: u32, collection_index: u8, key: Vec<u8> ) -> Result<Option<Vec<u8>>, RuntimeError>
Removes an entry from an index
source§fn actor_index_scan_keys(
&mut self,
object_handle: u32,
collection_index: u8,
limit: u32
) -> Result<Vec<Vec<u8>>, RuntimeError>
fn actor_index_scan_keys( &mut self, object_handle: u32, collection_index: u8, limit: u32 ) -> Result<Vec<Vec<u8>>, RuntimeError>
Scans arbitrary elements of count from an index
source§fn actor_index_drain(
&mut self,
object_handle: u32,
collection_index: u8,
limit: u32
) -> Result<Vec<(Vec<u8>, Vec<u8>)>, RuntimeError>
fn actor_index_drain( &mut self, object_handle: u32, collection_index: u8, limit: u32 ) -> Result<Vec<(Vec<u8>, Vec<u8>)>, RuntimeError>
Removes and returns arbitrary elements of count from an index
source§fn actor_index_insert_typed<K, V>(
&mut self,
object_handle: u32,
collection_index: u8,
key: K,
value: V
) -> Result<(), E>where
K: ScryptoEncode,
V: ScryptoEncode,
fn actor_index_insert_typed<K, V>(
&mut self,
object_handle: u32,
collection_index: u8,
key: K,
value: V
) -> Result<(), E>where
K: ScryptoEncode,
V: ScryptoEncode,
Inserts an entry into an index
source§fn actor_index_remove_typed<V>(
&mut self,
object_handle: u32,
collection_index: u8,
key: Vec<u8>
) -> Result<Option<V>, E>where
V: ScryptoDecode,
fn actor_index_remove_typed<V>(
&mut self,
object_handle: u32,
collection_index: u8,
key: Vec<u8>
) -> Result<Option<V>, E>where
V: ScryptoDecode,
Removes an entry from an index
source§fn actor_index_scan_keys_typed<K>(
&mut self,
object_handle: u32,
collection_index: u8,
limit: u32
) -> Result<Vec<K>, E>where
K: ScryptoDecode,
fn actor_index_scan_keys_typed<K>(
&mut self,
object_handle: u32,
collection_index: u8,
limit: u32
) -> Result<Vec<K>, E>where
K: ScryptoDecode,
Scans arbitrary elements of count from an index
source§fn actor_index_drain_typed<K, V>(
&mut self,
object_handle: u32,
collection_index: u8,
limit: u32
) -> Result<Vec<(K, V)>, E>where
K: ScryptoDecode,
V: ScryptoDecode,
fn actor_index_drain_typed<K, V>(
&mut self,
object_handle: u32,
collection_index: u8,
limit: u32
) -> Result<Vec<(K, V)>, E>where
K: ScryptoDecode,
V: ScryptoDecode,
Removes and returns arbitrary elements of count from an index
source§impl ClientActorIndexApi<RuntimeError> for TestEnvironment
impl ClientActorIndexApi<RuntimeError> for TestEnvironment
source§fn actor_index_insert(
&mut self,
object_handle: ActorStateHandle,
collection_index: CollectionIndex,
key: Vec<u8>,
buffer: Vec<u8>
) -> Result<(), RuntimeError>
fn actor_index_insert( &mut self, object_handle: ActorStateHandle, collection_index: CollectionIndex, key: Vec<u8>, buffer: Vec<u8> ) -> Result<(), RuntimeError>
Inserts an entry into an index
source§fn actor_index_remove(
&mut self,
object_handle: ActorStateHandle,
collection_index: CollectionIndex,
key: Vec<u8>
) -> Result<Option<Vec<u8>>, RuntimeError>
fn actor_index_remove( &mut self, object_handle: ActorStateHandle, collection_index: CollectionIndex, key: Vec<u8> ) -> Result<Option<Vec<u8>>, RuntimeError>
Removes an entry from an index
source§fn actor_index_scan_keys(
&mut self,
object_handle: ActorStateHandle,
collection_index: CollectionIndex,
limit: u32
) -> Result<Vec<Vec<u8>>, RuntimeError>
fn actor_index_scan_keys( &mut self, object_handle: ActorStateHandle, collection_index: CollectionIndex, limit: u32 ) -> Result<Vec<Vec<u8>>, RuntimeError>
Scans arbitrary elements of count from an index
source§fn actor_index_drain(
&mut self,
object_handle: ActorStateHandle,
collection_index: CollectionIndex,
limit: u32
) -> Result<Vec<(Vec<u8>, Vec<u8>)>, RuntimeError>
fn actor_index_drain( &mut self, object_handle: ActorStateHandle, collection_index: CollectionIndex, limit: u32 ) -> Result<Vec<(Vec<u8>, Vec<u8>)>, RuntimeError>
Removes and returns arbitrary elements of count from an index
source§fn actor_index_insert_typed<K, V>(
&mut self,
object_handle: u32,
collection_index: u8,
key: K,
value: V
) -> Result<(), E>where
K: ScryptoEncode,
V: ScryptoEncode,
fn actor_index_insert_typed<K, V>(
&mut self,
object_handle: u32,
collection_index: u8,
key: K,
value: V
) -> Result<(), E>where
K: ScryptoEncode,
V: ScryptoEncode,
Inserts an entry into an index
source§fn actor_index_remove_typed<V>(
&mut self,
object_handle: u32,
collection_index: u8,
key: Vec<u8>
) -> Result<Option<V>, E>where
V: ScryptoDecode,
fn actor_index_remove_typed<V>(
&mut self,
object_handle: u32,
collection_index: u8,
key: Vec<u8>
) -> Result<Option<V>, E>where
V: ScryptoDecode,
Removes an entry from an index
source§fn actor_index_scan_keys_typed<K>(
&mut self,
object_handle: u32,
collection_index: u8,
limit: u32
) -> Result<Vec<K>, E>where
K: ScryptoDecode,
fn actor_index_scan_keys_typed<K>(
&mut self,
object_handle: u32,
collection_index: u8,
limit: u32
) -> Result<Vec<K>, E>where
K: ScryptoDecode,
Scans arbitrary elements of count from an index
source§fn actor_index_drain_typed<K, V>(
&mut self,
object_handle: u32,
collection_index: u8,
limit: u32
) -> Result<Vec<(K, V)>, E>where
K: ScryptoDecode,
V: ScryptoDecode,
fn actor_index_drain_typed<K, V>(
&mut self,
object_handle: u32,
collection_index: u8,
limit: u32
) -> Result<Vec<(K, V)>, E>where
K: ScryptoDecode,
V: ScryptoDecode,
Removes and returns arbitrary elements of count from an index
source§impl<'a, Y, V> ClientActorKeyValueEntryApi<RuntimeError> for SystemService<'a, Y, V>
impl<'a, Y, V> ClientActorKeyValueEntryApi<RuntimeError> for SystemService<'a, Y, V>
source§fn actor_open_key_value_entry(
&mut self,
object_handle: u32,
collection_index: u8,
key: &Vec<u8>,
flags: LockFlags
) -> Result<u32, RuntimeError>
fn actor_open_key_value_entry( &mut self, object_handle: u32, collection_index: u8, key: &Vec<u8>, flags: LockFlags ) -> Result<u32, RuntimeError>
If the key value entry doesn’t exist, it uses the default “Option::None”
fn actor_remove_key_value_entry( &mut self, object_handle: u32, collection_index: u8, key: &Vec<u8> ) -> Result<Vec<u8>, RuntimeError>
fn actor_remove_key_value_entry_typed<V>(
&mut self,
object_handle: u32,
collection_index: u8,
key: &Vec<u8>
) -> Result<Option<V>, E>where
V: ScryptoDecode,
source§impl ClientActorKeyValueEntryApi<RuntimeError> for TestEnvironment
impl ClientActorKeyValueEntryApi<RuntimeError> for TestEnvironment
source§fn actor_open_key_value_entry(
&mut self,
object_handle: ActorStateHandle,
collection_index: CollectionIndex,
key: &Vec<u8>,
flags: LockFlags
) -> Result<KeyValueEntryHandle, RuntimeError>
fn actor_open_key_value_entry( &mut self, object_handle: ActorStateHandle, collection_index: CollectionIndex, key: &Vec<u8>, flags: LockFlags ) -> Result<KeyValueEntryHandle, RuntimeError>
If the key value entry doesn’t exist, it uses the default “Option::None”
fn actor_remove_key_value_entry( &mut self, object_handle: ActorStateHandle, collection_index: CollectionIndex, key: &Vec<u8> ) -> Result<Vec<u8>, RuntimeError>
fn actor_remove_key_value_entry_typed<V>(
&mut self,
object_handle: u32,
collection_index: u8,
key: &Vec<u8>
) -> Result<Option<V>, E>where
V: ScryptoDecode,
source§impl<'a, Y, V> ClientActorSortedIndexApi<RuntimeError> for SystemService<'a, Y, V>
impl<'a, Y, V> ClientActorSortedIndexApi<RuntimeError> for SystemService<'a, Y, V>
source§fn actor_sorted_index_insert(
&mut self,
object_handle: u32,
collection_index: u8,
sorted_key: ([u8; 2], Vec<u8>),
buffer: Vec<u8>
) -> Result<(), RuntimeError>
fn actor_sorted_index_insert( &mut self, object_handle: u32, collection_index: u8, sorted_key: ([u8; 2], Vec<u8>), buffer: Vec<u8> ) -> Result<(), RuntimeError>
Inserts an entry into a sorted index
source§fn actor_sorted_index_remove(
&mut self,
object_handle: u32,
collection_index: u8,
sorted_key: &([u8; 2], Vec<u8>)
) -> Result<Option<Vec<u8>>, RuntimeError>
fn actor_sorted_index_remove( &mut self, object_handle: u32, collection_index: u8, sorted_key: &([u8; 2], Vec<u8>) ) -> Result<Option<Vec<u8>>, RuntimeError>
Removes an entry from a sorted index
source§fn actor_sorted_index_scan(
&mut self,
object_handle: u32,
collection_index: u8,
limit: u32
) -> Result<Vec<(([u8; 2], Vec<u8>), Vec<u8>)>, RuntimeError>
fn actor_sorted_index_scan( &mut self, object_handle: u32, collection_index: u8, limit: u32 ) -> Result<Vec<(([u8; 2], Vec<u8>), Vec<u8>)>, RuntimeError>
Scans the first elements of count from a sorted index
source§fn actor_sorted_index_insert_typed<V>(
&mut self,
object_handle: u32,
collection_index: u8,
sorted_key: ([u8; 2], Vec<u8>),
value: V
) -> Result<(), E>where
V: ScryptoEncode,
fn actor_sorted_index_insert_typed<V>(
&mut self,
object_handle: u32,
collection_index: u8,
sorted_key: ([u8; 2], Vec<u8>),
value: V
) -> Result<(), E>where
V: ScryptoEncode,
Inserts an entry into a sorted index
source§fn actor_sorted_index_remove_typed<V>(
&mut self,
object_handle: u32,
collection_index: u8,
sorted_key: &([u8; 2], Vec<u8>)
) -> Result<Option<V>, E>where
V: ScryptoDecode,
fn actor_sorted_index_remove_typed<V>(
&mut self,
object_handle: u32,
collection_index: u8,
sorted_key: &([u8; 2], Vec<u8>)
) -> Result<Option<V>, E>where
V: ScryptoDecode,
Removes an entry from a sorted index
source§fn actor_sorted_index_scan_typed<K, V>(
&mut self,
object_handle: u32,
collection_index: u8,
count: u32
) -> Result<Vec<(K, V)>, E>where
K: ScryptoDecode,
V: ScryptoDecode,
fn actor_sorted_index_scan_typed<K, V>(
&mut self,
object_handle: u32,
collection_index: u8,
count: u32
) -> Result<Vec<(K, V)>, E>where
K: ScryptoDecode,
V: ScryptoDecode,
Scans the first elements of count from a sorted index
source§impl ClientActorSortedIndexApi<RuntimeError> for TestEnvironment
impl ClientActorSortedIndexApi<RuntimeError> for TestEnvironment
source§fn actor_sorted_index_insert(
&mut self,
object_handle: ActorStateHandle,
collection_index: CollectionIndex,
sorted_key: SortedKey,
buffer: Vec<u8>
) -> Result<(), RuntimeError>
fn actor_sorted_index_insert( &mut self, object_handle: ActorStateHandle, collection_index: CollectionIndex, sorted_key: SortedKey, buffer: Vec<u8> ) -> Result<(), RuntimeError>
Inserts an entry into a sorted index
source§fn actor_sorted_index_remove(
&mut self,
object_handle: ActorStateHandle,
collection_index: CollectionIndex,
sorted_key: &SortedKey
) -> Result<Option<Vec<u8>>, RuntimeError>
fn actor_sorted_index_remove( &mut self, object_handle: ActorStateHandle, collection_index: CollectionIndex, sorted_key: &SortedKey ) -> Result<Option<Vec<u8>>, RuntimeError>
Removes an entry from a sorted index
source§fn actor_sorted_index_scan(
&mut self,
object_handle: ActorStateHandle,
collection_index: CollectionIndex,
count: u32
) -> Result<Vec<(SortedKey, Vec<u8>)>, RuntimeError>
fn actor_sorted_index_scan( &mut self, object_handle: ActorStateHandle, collection_index: CollectionIndex, count: u32 ) -> Result<Vec<(SortedKey, Vec<u8>)>, RuntimeError>
Scans the first elements of count from a sorted index
source§fn actor_sorted_index_insert_typed<V>(
&mut self,
object_handle: u32,
collection_index: u8,
sorted_key: ([u8; 2], Vec<u8>),
value: V
) -> Result<(), E>where
V: ScryptoEncode,
fn actor_sorted_index_insert_typed<V>(
&mut self,
object_handle: u32,
collection_index: u8,
sorted_key: ([u8; 2], Vec<u8>),
value: V
) -> Result<(), E>where
V: ScryptoEncode,
Inserts an entry into a sorted index
source§fn actor_sorted_index_remove_typed<V>(
&mut self,
object_handle: u32,
collection_index: u8,
sorted_key: &([u8; 2], Vec<u8>)
) -> Result<Option<V>, E>where
V: ScryptoDecode,
fn actor_sorted_index_remove_typed<V>(
&mut self,
object_handle: u32,
collection_index: u8,
sorted_key: &([u8; 2], Vec<u8>)
) -> Result<Option<V>, E>where
V: ScryptoDecode,
Removes an entry from a sorted index
source§fn actor_sorted_index_scan_typed<K, V>(
&mut self,
object_handle: u32,
collection_index: u8,
count: u32
) -> Result<Vec<(K, V)>, E>where
K: ScryptoDecode,
V: ScryptoDecode,
fn actor_sorted_index_scan_typed<K, V>(
&mut self,
object_handle: u32,
collection_index: u8,
count: u32
) -> Result<Vec<(K, V)>, E>where
K: ScryptoDecode,
V: ScryptoDecode,
Scans the first elements of count from a sorted index
source§impl<'a, Y, V> ClientBlueprintApi<RuntimeError> for SystemService<'a, Y, V>
impl<'a, Y, V> ClientBlueprintApi<RuntimeError> for SystemService<'a, Y, V>
source§fn call_function(
&mut self,
package_address: PackageAddress,
blueprint_name: &str,
function_name: &str,
args: Vec<u8>
) -> Result<Vec<u8>, RuntimeError>
fn call_function( &mut self, package_address: PackageAddress, blueprint_name: &str, function_name: &str, args: Vec<u8> ) -> Result<Vec<u8>, RuntimeError>
Calls a function on a blueprint
fn resolve_blueprint_type( &mut self, blueprint_type_id: &BlueprintTypeIdentifier ) -> Result<(Rc<VersionedSchema<ScryptoCustomSchema>>, ScopedTypeId), RuntimeError>
source§impl ClientBlueprintApi<RuntimeError> for TestEnvironment
impl ClientBlueprintApi<RuntimeError> for TestEnvironment
source§fn call_function(
&mut self,
package_address: PackageAddress,
blueprint_name: &str,
function_name: &str,
args: Vec<u8>
) -> Result<Vec<u8>, RuntimeError>
fn call_function( &mut self, package_address: PackageAddress, blueprint_name: &str, function_name: &str, args: Vec<u8> ) -> Result<Vec<u8>, RuntimeError>
Calls a function on a blueprint
fn resolve_blueprint_type( &mut self, blueprint_type_id: &BlueprintTypeIdentifier ) -> Result<(Rc<VersionedScryptoSchema>, ScopedTypeId), RuntimeError>
source§impl<'a, Y, V> ClientCostingApi<RuntimeError> for SystemService<'a, Y, V>
impl<'a, Y, V> ClientCostingApi<RuntimeError> for SystemService<'a, Y, V>
fn consume_cost_units( &mut self, costing_entry: ClientCostingEntry<'_> ) -> Result<(), RuntimeError>
source§fn start_lock_fee(&mut self, amount: Decimal) -> Result<bool, RuntimeError>
fn start_lock_fee(&mut self, amount: Decimal) -> Result<bool, RuntimeError>
Check if costing is enabled.
source§fn lock_fee(&mut self, locked_fee: LiquidFungibleResource, contingent: bool)
fn lock_fee(&mut self, locked_fee: LiquidFungibleResource, contingent: bool)
Add cost units to the reserve. This should never fail.
fn execution_cost_unit_limit(&mut self) -> Result<u32, RuntimeError>
fn execution_cost_unit_price(&mut self) -> Result<Decimal, RuntimeError>
fn finalization_cost_unit_limit(&mut self) -> Result<u32, RuntimeError>
fn finalization_cost_unit_price(&mut self) -> Result<Decimal, RuntimeError>
fn usd_price(&mut self) -> Result<Decimal, RuntimeError>
fn max_per_function_royalty_in_xrd(&mut self) -> Result<Decimal, RuntimeError>
fn tip_percentage(&mut self) -> Result<u32, RuntimeError>
fn fee_balance(&mut self) -> Result<Decimal, RuntimeError>
source§impl ClientCostingApi<RuntimeError> for TestEnvironment
impl ClientCostingApi<RuntimeError> for TestEnvironment
source§fn start_lock_fee(&mut self, amount: Decimal) -> Result<bool, RuntimeError>
fn start_lock_fee(&mut self, amount: Decimal) -> Result<bool, RuntimeError>
Check if costing is enabled.
source§fn lock_fee(&mut self, locked_fee: LiquidFungibleResource, contingent: bool)
fn lock_fee(&mut self, locked_fee: LiquidFungibleResource, contingent: bool)
Add cost units to the reserve. This should never fail.
fn consume_cost_units( &mut self, costing_entry: ClientCostingEntry<'_> ) -> Result<(), RuntimeError>
fn execution_cost_unit_limit(&mut self) -> Result<u32, RuntimeError>
fn execution_cost_unit_price(&mut self) -> Result<Decimal, RuntimeError>
fn finalization_cost_unit_limit(&mut self) -> Result<u32, RuntimeError>
fn finalization_cost_unit_price(&mut self) -> Result<Decimal, RuntimeError>
fn usd_price(&mut self) -> Result<Decimal, RuntimeError>
fn max_per_function_royalty_in_xrd(&mut self) -> Result<Decimal, RuntimeError>
fn tip_percentage(&mut self) -> Result<u32, RuntimeError>
fn fee_balance(&mut self) -> Result<Decimal, RuntimeError>
source§impl<'a, Y, V> ClientCryptoUtilsApi<RuntimeError> for SystemService<'a, Y, V>
impl<'a, Y, V> ClientCryptoUtilsApi<RuntimeError> for SystemService<'a, Y, V>
fn bls12381_v1_verify( &mut self, message: &[u8], public_key: &Bls12381G1PublicKey, signature: &Bls12381G2Signature ) -> Result<u32, RuntimeError>
fn bls12381_v1_aggregate_verify( &mut self, pub_keys_and_msgs: &[(Bls12381G1PublicKey, Vec<u8>)], signature: &Bls12381G2Signature ) -> Result<u32, RuntimeError>
fn bls12381_v1_fast_aggregate_verify( &mut self, message: &[u8], public_keys: &[Bls12381G1PublicKey], signature: &Bls12381G2Signature ) -> Result<u32, RuntimeError>
fn bls12381_g2_signature_aggregate( &mut self, signatures: &[Bls12381G2Signature] ) -> Result<Bls12381G2Signature, RuntimeError>
fn keccak256_hash(&mut self, data: &[u8]) -> Result<Hash, RuntimeError>
source§impl ClientCryptoUtilsApi<RuntimeError> for TestEnvironment
impl ClientCryptoUtilsApi<RuntimeError> for TestEnvironment
fn bls12381_v1_verify( &mut self, message: &[u8], public_key: &Bls12381G1PublicKey, signature: &Bls12381G2Signature ) -> Result<u32, RuntimeError>
fn bls12381_v1_aggregate_verify( &mut self, pub_keys_and_msgs: &[(Bls12381G1PublicKey, Vec<u8>)], signature: &Bls12381G2Signature ) -> Result<u32, RuntimeError>
fn bls12381_v1_fast_aggregate_verify( &mut self, message: &[u8], public_keys: &[Bls12381G1PublicKey], signature: &Bls12381G2Signature ) -> Result<u32, RuntimeError>
fn bls12381_g2_signature_aggregate( &mut self, signatures: &[Bls12381G2Signature] ) -> Result<Bls12381G2Signature, RuntimeError>
fn keccak256_hash(&mut self, data: &[u8]) -> Result<Hash, RuntimeError>
source§impl<'a, Y, V> ClientExecutionTraceApi<RuntimeError> for SystemService<'a, Y, V>
impl<'a, Y, V> ClientExecutionTraceApi<RuntimeError> for SystemService<'a, Y, V>
fn update_instruction_index( &mut self, new_index: usize ) -> Result<(), RuntimeError>
source§impl ClientExecutionTraceApi<RuntimeError> for TestEnvironment
impl ClientExecutionTraceApi<RuntimeError> for TestEnvironment
fn update_instruction_index( &mut self, new_index: usize ) -> Result<(), RuntimeError>
source§impl<'a, Y, V> ClientFieldApi<RuntimeError> for SystemService<'a, Y, V>
impl<'a, Y, V> ClientFieldApi<RuntimeError> for SystemService<'a, Y, V>
fn field_read(&mut self, handle: u32) -> Result<Vec<u8>, RuntimeError>
fn field_write( &mut self, handle: u32, buffer: Vec<u8> ) -> Result<(), RuntimeError>
fn field_lock(&mut self, handle: u32) -> Result<(), RuntimeError>
fn field_close(&mut self, handle: u32) -> Result<(), RuntimeError>
fn field_read_typed<S>(&mut self, handle: u32) -> Result<S, E>where
S: ScryptoDecode,
fn field_write_typed<S>(&mut self, handle: u32, substate: &S) -> Result<(), E>where
S: ScryptoEncode,
source§impl ClientFieldApi<RuntimeError> for TestEnvironment
impl ClientFieldApi<RuntimeError> for TestEnvironment
fn field_read(&mut self, handle: FieldHandle) -> Result<Vec<u8>, RuntimeError>
fn field_write( &mut self, handle: FieldHandle, buffer: Vec<u8> ) -> Result<(), RuntimeError>
fn field_lock(&mut self, handle: FieldHandle) -> Result<(), RuntimeError>
fn field_close(&mut self, handle: FieldHandle) -> Result<(), RuntimeError>
fn field_read_typed<S>(&mut self, handle: u32) -> Result<S, E>where
S: ScryptoDecode,
fn field_write_typed<S>(&mut self, handle: u32, substate: &S) -> Result<(), E>where
S: ScryptoEncode,
source§impl<'a, Y, V> ClientKeyValueEntryApi<RuntimeError> for SystemService<'a, Y, V>
impl<'a, Y, V> ClientKeyValueEntryApi<RuntimeError> for SystemService<'a, Y, V>
fn key_value_entry_get(&mut self, handle: u32) -> Result<Vec<u8>, RuntimeError>
fn key_value_entry_lock(&mut self, handle: u32) -> Result<(), RuntimeError>
fn key_value_entry_remove( &mut self, handle: u32 ) -> Result<Vec<u8>, RuntimeError>
fn key_value_entry_set( &mut self, handle: u32, buffer: Vec<u8> ) -> Result<(), RuntimeError>
fn key_value_entry_close(&mut self, handle: u32) -> Result<(), RuntimeError>
fn key_value_entry_get_typed<S>(&mut self, handle: u32) -> Result<Option<S>, E>where
S: ScryptoDecode,
fn key_value_entry_set_typed<S>(
&mut self,
handle: u32,
value: S
) -> Result<(), E>where
S: ScryptoEncode,
source§impl ClientKeyValueEntryApi<RuntimeError> for TestEnvironment
impl ClientKeyValueEntryApi<RuntimeError> for TestEnvironment
fn key_value_entry_get( &mut self, handle: KeyValueEntryHandle ) -> Result<Vec<u8>, RuntimeError>
fn key_value_entry_set( &mut self, handle: KeyValueEntryHandle, buffer: Vec<u8> ) -> Result<(), RuntimeError>
fn key_value_entry_remove( &mut self, handle: KeyValueEntryHandle ) -> Result<Vec<u8>, RuntimeError>
fn key_value_entry_lock( &mut self, handle: KeyValueEntryHandle ) -> Result<(), RuntimeError>
fn key_value_entry_close( &mut self, handle: KeyValueEntryHandle ) -> Result<(), RuntimeError>
fn key_value_entry_get_typed<S>(&mut self, handle: u32) -> Result<Option<S>, E>where
S: ScryptoDecode,
fn key_value_entry_set_typed<S>(
&mut self,
handle: u32,
value: S
) -> Result<(), E>where
S: ScryptoEncode,
source§impl<'a, Y, V> ClientKeyValueStoreApi<RuntimeError> for SystemService<'a, Y, V>
impl<'a, Y, V> ClientKeyValueStoreApi<RuntimeError> for SystemService<'a, Y, V>
source§fn key_value_store_new(
&mut self,
data_schema: KeyValueStoreDataSchema
) -> Result<NodeId, RuntimeError>
fn key_value_store_new( &mut self, data_schema: KeyValueStoreDataSchema ) -> Result<NodeId, RuntimeError>
Creates a new key value store with a given schema
source§fn key_value_store_open_entry(
&mut self,
node_id: &NodeId,
key: &Vec<u8>,
flags: LockFlags
) -> Result<u32, RuntimeError>
fn key_value_store_open_entry( &mut self, node_id: &NodeId, key: &Vec<u8>, flags: LockFlags ) -> Result<u32, RuntimeError>
Lock a key value store entry for reading/writing
fn key_value_store_remove_entry( &mut self, node_id: &NodeId, key: &Vec<u8> ) -> Result<Vec<u8>, RuntimeError>
source§impl ClientKeyValueStoreApi<RuntimeError> for TestEnvironment
impl ClientKeyValueStoreApi<RuntimeError> for TestEnvironment
source§fn key_value_store_new(
&mut self,
data_schema: KeyValueStoreDataSchema
) -> Result<NodeId, RuntimeError>
fn key_value_store_new( &mut self, data_schema: KeyValueStoreDataSchema ) -> Result<NodeId, RuntimeError>
Creates a new key value store with a given schema
source§fn key_value_store_open_entry(
&mut self,
node_id: &NodeId,
key: &Vec<u8>,
flags: LockFlags
) -> Result<KeyValueEntryHandle, RuntimeError>
fn key_value_store_open_entry( &mut self, node_id: &NodeId, key: &Vec<u8>, flags: LockFlags ) -> Result<KeyValueEntryHandle, RuntimeError>
Lock a key value store entry for reading/writing
fn key_value_store_remove_entry( &mut self, node_id: &NodeId, key: &Vec<u8> ) -> Result<Vec<u8>, RuntimeError>
source§impl<'a, Y, V> ClientObjectApi<RuntimeError> for SystemService<'a, Y, V>
impl<'a, Y, V> ClientObjectApi<RuntimeError> for SystemService<'a, Y, V>
source§fn new_object(
&mut self,
blueprint_ident: &str,
features: Vec<&str>,
generic_args: GenericArgs,
fields: IndexMap<u8, FieldValue>,
kv_entries: IndexMap<u8, IndexMap<Vec<u8>, KVEntry>>
) -> Result<NodeId, RuntimeError>
fn new_object( &mut self, blueprint_ident: &str, features: Vec<&str>, generic_args: GenericArgs, fields: IndexMap<u8, FieldValue>, kv_entries: IndexMap<u8, IndexMap<Vec<u8>, KVEntry>> ) -> Result<NodeId, RuntimeError>
Creates a new object of a given blueprint type
source§fn allocate_global_address(
&mut self,
blueprint_id: BlueprintId
) -> Result<(GlobalAddressReservation, GlobalAddress), RuntimeError>
fn allocate_global_address( &mut self, blueprint_id: BlueprintId ) -> Result<(GlobalAddressReservation, GlobalAddress), RuntimeError>
Pre-allocates a global address, for a future globalization.
fn allocate_virtual_global_address( &mut self, blueprint_id: BlueprintId, global_address: GlobalAddress ) -> Result<GlobalAddressReservation, RuntimeError>
source§fn globalize(
&mut self,
node_id: NodeId,
modules: IndexMap<AttachedModuleId, NodeId>,
address_reservation: Option<GlobalAddressReservation>
) -> Result<GlobalAddress, RuntimeError>
fn globalize( &mut self, node_id: NodeId, modules: IndexMap<AttachedModuleId, NodeId>, address_reservation: Option<GlobalAddressReservation> ) -> Result<GlobalAddress, RuntimeError>
Moves an object currently in the heap into the global space making
it accessible to all with the provided global address.
fn globalize_with_address_and_create_inner_object_and_emit_event( &mut self, node_id: NodeId, modules: IndexMap<AttachedModuleId, NodeId>, address_reservation: GlobalAddressReservation, inner_object_blueprint: &str, inner_object_fields: IndexMap<u8, FieldValue>, event_name: &str, event_data: Vec<u8> ) -> Result<(GlobalAddress, NodeId), RuntimeError>
source§fn call_method(
&mut self,
receiver: &NodeId,
method_name: &str,
args: Vec<u8>
) -> Result<Vec<u8>, RuntimeError>
fn call_method( &mut self, receiver: &NodeId, method_name: &str, args: Vec<u8> ) -> Result<Vec<u8>, RuntimeError>
Calls a method on an object
fn call_direct_access_method( &mut self, receiver: &NodeId, method_name: &str, args: Vec<u8> ) -> Result<Vec<u8>, RuntimeError>
source§fn call_module_method(
&mut self,
receiver: &NodeId,
module_id: AttachedModuleId,
method_name: &str,
args: Vec<u8>
) -> Result<Vec<u8>, RuntimeError>
fn call_module_method( &mut self, receiver: &NodeId, module_id: AttachedModuleId, method_name: &str, args: Vec<u8> ) -> Result<Vec<u8>, RuntimeError>
Calls a method on an object module
source§fn get_blueprint_id(
&mut self,
node_id: &NodeId
) -> Result<BlueprintId, RuntimeError>
fn get_blueprint_id( &mut self, node_id: &NodeId ) -> Result<BlueprintId, RuntimeError>
Get the blueprint id of a visible object
source§fn get_outer_object(
&mut self,
node_id: &NodeId
) -> Result<GlobalAddress, RuntimeError>
fn get_outer_object( &mut self, node_id: &NodeId ) -> Result<GlobalAddress, RuntimeError>
Get the outer object of a visible object
fn get_reservation_address( &mut self, node_id: &NodeId ) -> Result<GlobalAddress, RuntimeError>
source§fn drop_object(
&mut self,
node_id: &NodeId
) -> Result<Vec<Vec<u8>>, RuntimeError>
fn drop_object( &mut self, node_id: &NodeId ) -> Result<Vec<Vec<u8>>, RuntimeError>
Drops an owned object, returns the fields of the object
source§fn new_simple_object(
&mut self,
blueprint_ident: &str,
fields: IndexMap<u8, FieldValue>
) -> Result<NodeId, E>
fn new_simple_object( &mut self, blueprint_ident: &str, fields: IndexMap<u8, FieldValue> ) -> Result<NodeId, E>
Creates a new simple blueprint object of a given blueprint type
source§impl ClientObjectApi<RuntimeError> for TestEnvironment
impl ClientObjectApi<RuntimeError> for TestEnvironment
source§fn new_object(
&mut self,
blueprint_ident: &str,
features: Vec<&str>,
generic_args: GenericArgs,
fields: IndexMap<FieldIndex, FieldValue>,
kv_entries: IndexMap<u8, IndexMap<Vec<u8>, KVEntry>>
) -> Result<NodeId, RuntimeError>
fn new_object( &mut self, blueprint_ident: &str, features: Vec<&str>, generic_args: GenericArgs, fields: IndexMap<FieldIndex, FieldValue>, kv_entries: IndexMap<u8, IndexMap<Vec<u8>, KVEntry>> ) -> Result<NodeId, RuntimeError>
Creates a new object of a given blueprint type
source§fn drop_object(
&mut self,
node_id: &NodeId
) -> Result<Vec<Vec<u8>>, RuntimeError>
fn drop_object( &mut self, node_id: &NodeId ) -> Result<Vec<Vec<u8>>, RuntimeError>
Drops an owned object, returns the fields of the object
source§fn get_blueprint_id(
&mut self,
node_id: &NodeId
) -> Result<BlueprintId, RuntimeError>
fn get_blueprint_id( &mut self, node_id: &NodeId ) -> Result<BlueprintId, RuntimeError>
Get the blueprint id of a visible object
source§fn get_outer_object(
&mut self,
node_id: &NodeId
) -> Result<GlobalAddress, RuntimeError>
fn get_outer_object( &mut self, node_id: &NodeId ) -> Result<GlobalAddress, RuntimeError>
Get the outer object of a visible object
source§fn allocate_global_address(
&mut self,
blueprint_id: BlueprintId
) -> Result<(GlobalAddressReservation, GlobalAddress), RuntimeError>
fn allocate_global_address( &mut self, blueprint_id: BlueprintId ) -> Result<(GlobalAddressReservation, GlobalAddress), RuntimeError>
Pre-allocates a global address, for a future globalization.
fn allocate_virtual_global_address( &mut self, blueprint_id: BlueprintId, global_address: GlobalAddress ) -> Result<GlobalAddressReservation, RuntimeError>
fn get_reservation_address( &mut self, node_id: &NodeId ) -> Result<GlobalAddress, RuntimeError>
source§fn globalize(
&mut self,
node_id: NodeId,
modules: IndexMap<AttachedModuleId, NodeId>,
address_reservation: Option<GlobalAddressReservation>
) -> Result<GlobalAddress, RuntimeError>
fn globalize( &mut self, node_id: NodeId, modules: IndexMap<AttachedModuleId, NodeId>, address_reservation: Option<GlobalAddressReservation> ) -> Result<GlobalAddress, RuntimeError>
Moves an object currently in the heap into the global space making
it accessible to all with the provided global address.
fn globalize_with_address_and_create_inner_object_and_emit_event( &mut self, node_id: NodeId, modules: IndexMap<AttachedModuleId, NodeId>, address_reservation: GlobalAddressReservation, inner_object_blueprint: &str, inner_object_fields: IndexMap<u8, FieldValue>, event_name: &str, event_data: Vec<u8> ) -> Result<(GlobalAddress, NodeId), RuntimeError>
source§fn call_method(
&mut self,
receiver: &NodeId,
method_name: &str,
args: Vec<u8>
) -> Result<Vec<u8>, RuntimeError>
fn call_method( &mut self, receiver: &NodeId, method_name: &str, args: Vec<u8> ) -> Result<Vec<u8>, RuntimeError>
Calls a method on an object
fn call_direct_access_method( &mut self, receiver: &NodeId, method_name: &str, args: Vec<u8> ) -> Result<Vec<u8>, RuntimeError>
source§fn call_module_method(
&mut self,
receiver: &NodeId,
module_id: AttachedModuleId,
method_name: &str,
args: Vec<u8>
) -> Result<Vec<u8>, RuntimeError>
fn call_module_method( &mut self, receiver: &NodeId, module_id: AttachedModuleId, method_name: &str, args: Vec<u8> ) -> Result<Vec<u8>, RuntimeError>
Calls a method on an object module
source§fn new_simple_object(
&mut self,
blueprint_ident: &str,
fields: IndexMap<u8, FieldValue>
) -> Result<NodeId, E>
fn new_simple_object( &mut self, blueprint_ident: &str, fields: IndexMap<u8, FieldValue> ) -> Result<NodeId, E>
Creates a new simple blueprint object of a given blueprint type
source§impl<'a, Y, V> ClientTransactionRuntimeApi<RuntimeError> for SystemService<'a, Y, V>
impl<'a, Y, V> ClientTransactionRuntimeApi<RuntimeError> for SystemService<'a, Y, V>
fn get_transaction_hash(&mut self) -> Result<Hash, RuntimeError>
fn generate_ruid(&mut self) -> Result<[u8; 32], RuntimeError>
fn bech32_encode_address( &mut self, address: GlobalAddress ) -> Result<String, RuntimeError>
fn emit_log( &mut self, level: Level, message: String ) -> Result<(), RuntimeError>
fn panic(&mut self, message: String) -> Result<(), RuntimeError>
source§impl ClientTransactionRuntimeApi<RuntimeError> for TestEnvironment
impl ClientTransactionRuntimeApi<RuntimeError> for TestEnvironment
fn bech32_encode_address( &mut self, address: GlobalAddress ) -> Result<String, RuntimeError>
fn get_transaction_hash(&mut self) -> Result<Hash, RuntimeError>
fn generate_ruid(&mut self) -> Result<[u8; 32], RuntimeError>
fn emit_log( &mut self, level: Level, message: String ) -> Result<(), RuntimeError>
fn panic(&mut self, message: String) -> Result<(), RuntimeError>
source§impl Clone for RuntimeError
impl Clone for RuntimeError
source§fn clone(&self) -> RuntimeError
fn clone(&self) -> RuntimeError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RuntimeError
impl Debug for RuntimeError
source§impl<D> Decode<ScryptoCustomValueKind, D> for RuntimeErrorwhere
D: Decoder<ScryptoCustomValueKind>,
impl<D> Decode<ScryptoCustomValueKind, D> for RuntimeErrorwhere
D: Decoder<ScryptoCustomValueKind>,
source§fn decode_body_with_value_kind(
decoder: &mut D,
value_kind: ValueKind<ScryptoCustomValueKind>
) -> Result<RuntimeError, DecodeError>
fn decode_body_with_value_kind( decoder: &mut D, value_kind: ValueKind<ScryptoCustomValueKind> ) -> Result<RuntimeError, DecodeError>
Decodes the type from the decoder, which should match a preloaded value kind. Read more
source§impl Describe<ScryptoCustomTypeKind> for RuntimeError
impl Describe<ScryptoCustomTypeKind> for RuntimeError
source§const TYPE_ID: RustTypeId = _
const TYPE_ID: RustTypeId = _
The
TYPE_ID
should give a unique identifier for its SBOR schema type.
An SBOR schema type capture details about the SBOR payload, how it should be interpreted, validated and displayed. Read moresource§fn type_data() -> TypeData<ScryptoCustomTypeKind, RustTypeId>
fn type_data() -> TypeData<ScryptoCustomTypeKind, RustTypeId>
Returns the local schema for the given type. Read more
source§fn add_all_dependencies(aggregator: &mut TypeAggregator<ScryptoCustomTypeKind>)
fn add_all_dependencies(aggregator: &mut TypeAggregator<ScryptoCustomTypeKind>)
For each type referenced in
get_local_type_data
, we need to ensure that the type and all of its own references
get added to the aggregator. Read moresource§impl Display for RuntimeError
impl Display for RuntimeError
source§impl<E> Encode<ScryptoCustomValueKind, E> for RuntimeErrorwhere
E: Encoder<ScryptoCustomValueKind>,
impl<E> Encode<ScryptoCustomValueKind, E> for RuntimeErrorwhere
E: Encoder<ScryptoCustomValueKind>,
source§fn encode_value_kind(&self, encoder: &mut E) -> Result<(), EncodeError>
fn encode_value_kind(&self, encoder: &mut E) -> Result<(), EncodeError>
Encodes the SBOR value’s kind to the encoder
source§fn encode_body(&self, encoder: &mut E) -> Result<(), EncodeError>
fn encode_body(&self, encoder: &mut E) -> Result<(), EncodeError>
Encodes the SBOR body of the type to the encoder. Read more
source§impl From<AccessControllerError> for RuntimeError
impl From<AccessControllerError> for RuntimeError
source§fn from(value: AccessControllerError) -> RuntimeError
fn from(value: AccessControllerError) -> RuntimeError
Converts to this type from the input type.
source§impl From<AccountError> for RuntimeError
impl From<AccountError> for RuntimeError
source§fn from(value: AccountError) -> RuntimeError
fn from(value: AccountError) -> RuntimeError
Converts to this type from the input type.
source§impl From<ApplicationError> for RuntimeError
impl From<ApplicationError> for RuntimeError
source§fn from(error: ApplicationError) -> RuntimeError
fn from(error: ApplicationError) -> RuntimeError
Converts to this type from the input type.
source§impl From<BucketError> for RuntimeError
impl From<BucketError> for RuntimeError
source§fn from(bucket_error: BucketError) -> RuntimeError
fn from(bucket_error: BucketError) -> RuntimeError
Converts to this type from the input type.
source§impl From<Error> for RuntimeError
impl From<Error> for RuntimeError
source§fn from(error: Error) -> RuntimeError
fn from(error: Error) -> RuntimeError
Converts to this type from the input type.
source§impl From<Error> for RuntimeError
impl From<Error> for RuntimeError
source§fn from(error: Error) -> RuntimeError
fn from(error: Error) -> RuntimeError
Converts to this type from the input type.
source§impl From<Error> for RuntimeError
impl From<Error> for RuntimeError
source§fn from(error: Error) -> RuntimeError
fn from(error: Error) -> RuntimeError
Converts to this type from the input type.
source§impl<E> From<InvokeError<E>> for RuntimeErrorwhere
E: SelfError,
impl<E> From<InvokeError<E>> for RuntimeErrorwhere
E: SelfError,
source§fn from(error: InvokeError<E>) -> RuntimeError
fn from(error: InvokeError<E>) -> RuntimeError
Converts to this type from the input type.
source§impl From<KernelError> for RuntimeError
impl From<KernelError> for RuntimeError
source§fn from(error: KernelError) -> RuntimeError
fn from(error: KernelError) -> RuntimeError
Converts to this type from the input type.
source§impl<E> From<RuntimeError> for InvokeError<E>where
E: SelfError,
impl<E> From<RuntimeError> for InvokeError<E>where
E: SelfError,
source§fn from(runtime_error: RuntimeError) -> InvokeError<E>
fn from(runtime_error: RuntimeError) -> InvokeError<E>
Converts to this type from the input type.
source§impl From<SystemModuleError> for RuntimeError
impl From<SystemModuleError> for RuntimeError
source§fn from(error: SystemModuleError) -> RuntimeError
fn from(error: SystemModuleError) -> RuntimeError
Converts to this type from the input type.
source§impl From<SystemUpstreamError> for RuntimeError
impl From<SystemUpstreamError> for RuntimeError
source§fn from(error: SystemUpstreamError) -> RuntimeError
fn from(error: SystemUpstreamError) -> RuntimeError
Converts to this type from the input type.
source§impl<T> From<T> for RuntimeErrorwhere
T: Into<CallFrameError>,
impl<T> From<T> for RuntimeErrorwhere
T: Into<CallFrameError>,
source§fn from(value: T) -> RuntimeError
fn from(value: T) -> RuntimeError
Converts to this type from the input type.
source§impl From<TransactionProcessorError> for RuntimeError
impl From<TransactionProcessorError> for RuntimeError
source§fn from(value: TransactionProcessorError) -> RuntimeError
fn from(value: TransactionProcessorError) -> RuntimeError
Converts to this type from the input type.
source§impl From<VaultError> for RuntimeError
impl From<VaultError> for RuntimeError
source§fn from(error: VaultError) -> RuntimeError
fn from(error: VaultError) -> RuntimeError
Converts to this type from the input type.
source§impl PartialEq for RuntimeError
impl PartialEq for RuntimeError
source§fn eq(&self, other: &RuntimeError) -> bool
fn eq(&self, other: &RuntimeError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SborEnum<ScryptoCustomValueKind> for RuntimeError
impl SborEnum<ScryptoCustomValueKind> for RuntimeError
fn get_discriminator(&self) -> u8
fn get_length(&self) -> usize
impl<'a, Y, V> ClientApi<RuntimeError> for SystemService<'a, Y, V>
impl ClientApi<RuntimeError> for TestEnvironment
impl Eq for RuntimeError
impl StructuralPartialEq for RuntimeError
Auto Trait Implementations§
impl RefUnwindSafe for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl UnwindSafe for RuntimeError
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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
.§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
.§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.§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.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.