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

source§

impl Categorize<ScryptoCustomValueKind> for RuntimeError

source§

impl<'a, Y, V> ClientActorApi<RuntimeError> for SystemService<'a, Y, V>

source§

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>

Retrieve the current method actor’s node id
source§

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>

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>

Emits an event of the current actor
source§

impl ClientActorApi<RuntimeError> for TestEnvironment

source§

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>

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>

Check if a feature is enabled for a given object
source§

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>

Emits an event of the current actor
source§

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>

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>

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>

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>

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>

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,

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,

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>

Removes and returns arbitrary elements of count from an index
source§

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>

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>

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>

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>

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>

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,

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,

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>

Removes and returns arbitrary elements of count from an index
source§

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>

If the key value entry doesn’t exist, it uses the default “Option::None”
source§

fn actor_remove_key_value_entry( &mut self, object_handle: u32, collection_index: u8, key: &Vec<u8> ) -> Result<Vec<u8>, RuntimeError>

source§

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

source§

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”
source§

fn actor_remove_key_value_entry( &mut self, object_handle: ActorStateHandle, collection_index: CollectionIndex, key: &Vec<u8> ) -> Result<Vec<u8>, RuntimeError>

source§

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>

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>

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>

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>

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,

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,

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>

Scans the first elements of count from a sorted index
source§

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>

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>

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>

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,

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,

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>

Scans the first elements of count from a sorted index
source§

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>

Calls a function on a blueprint
source§

fn resolve_blueprint_type( &mut self, blueprint_type_id: &BlueprintTypeIdentifier ) -> Result<(Rc<VersionedSchema<ScryptoCustomSchema>>, ScopedTypeId), RuntimeError>

source§

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>

Calls a function on a blueprint
source§

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>

source§

impl ClientCostingApi<RuntimeError> for TestEnvironment

source§

impl<'a, Y, V> ClientCryptoUtilsApi<RuntimeError> for SystemService<'a, Y, V>

source§

impl ClientCryptoUtilsApi<RuntimeError> for TestEnvironment

source§

impl<'a, Y, V> ClientExecutionTraceApi<RuntimeError> for SystemService<'a, Y, V>

source§

impl ClientExecutionTraceApi<RuntimeError> for TestEnvironment

source§

impl<'a, Y, V> ClientFieldApi<RuntimeError> for SystemService<'a, Y, V>

source§

fn field_read(&mut self, handle: u32) -> Result<Vec<u8>, RuntimeError>

source§

fn field_write( &mut self, handle: u32, buffer: Vec<u8> ) -> Result<(), RuntimeError>

source§

fn field_lock(&mut self, handle: u32) -> Result<(), RuntimeError>

source§

fn field_close(&mut self, handle: u32) -> Result<(), RuntimeError>

source§

fn field_read_typed<S>(&mut self, handle: u32) -> Result<S, E>
where S: ScryptoDecode,

source§

fn field_write_typed<S>(&mut self, handle: u32, substate: &S) -> Result<(), E>
where S: ScryptoEncode,

source§

impl ClientFieldApi<RuntimeError> for TestEnvironment

source§

fn field_read(&mut self, handle: FieldHandle) -> Result<Vec<u8>, RuntimeError>

source§

fn field_write( &mut self, handle: FieldHandle, buffer: Vec<u8> ) -> Result<(), RuntimeError>

source§

fn field_lock(&mut self, handle: FieldHandle) -> Result<(), RuntimeError>

source§

fn field_close(&mut self, handle: FieldHandle) -> Result<(), RuntimeError>

source§

fn field_read_typed<S>(&mut self, handle: u32) -> Result<S, E>
where S: ScryptoDecode,

source§

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>

source§

fn key_value_entry_get(&mut self, handle: u32) -> Result<Vec<u8>, RuntimeError>

source§

fn key_value_entry_lock(&mut self, handle: u32) -> Result<(), RuntimeError>

source§

fn key_value_entry_remove( &mut self, handle: u32 ) -> Result<Vec<u8>, RuntimeError>

source§

fn key_value_entry_set( &mut self, handle: u32, buffer: Vec<u8> ) -> Result<(), RuntimeError>

source§

fn key_value_entry_close(&mut self, handle: u32) -> Result<(), RuntimeError>

source§

fn key_value_entry_get_typed<S>(&mut self, handle: u32) -> Result<Option<S>, E>
where S: ScryptoDecode,

source§

fn key_value_entry_set_typed<S>( &mut self, handle: u32, value: S ) -> Result<(), E>
where S: ScryptoEncode,

source§

impl ClientKeyValueEntryApi<RuntimeError> for TestEnvironment

source§

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>

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>

Lock a key value store entry for reading/writing
source§

fn key_value_store_remove_entry( &mut self, node_id: &NodeId, key: &Vec<u8> ) -> Result<Vec<u8>, RuntimeError>

source§

impl ClientKeyValueStoreApi<RuntimeError> for TestEnvironment

source§

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>

Lock a key value store entry for reading/writing
source§

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>

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>

Creates a new object of a given blueprint type
source§

fn allocate_global_address( &mut self, blueprint_id: BlueprintId ) -> Result<(GlobalAddressReservation, GlobalAddress), RuntimeError>

Pre-allocates a global address, for a future globalization.
source§

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>

Moves an object currently in the heap into the global space making it accessible to all with the provided global address.
source§

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>

Calls a method on an object
source§

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>

Calls a method on an object module
source§

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>

Get the outer object of a visible object
source§

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>

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>

Creates a new simple blueprint object of a given blueprint type
source§

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>

Creates a new object of a given blueprint type
source§

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>

Get the blueprint id of a visible object
source§

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>

Pre-allocates a global address, for a future globalization.
source§

fn allocate_virtual_global_address( &mut self, blueprint_id: BlueprintId, global_address: GlobalAddress ) -> Result<GlobalAddressReservation, RuntimeError>

source§

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>

Moves an object currently in the heap into the global space making it accessible to all with the provided global address.
source§

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>

Calls a method on an object
source§

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>

Calls a method on an object module
source§

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>

source§

impl ClientTransactionRuntimeApi<RuntimeError> for TestEnvironment

source§

impl Clone for RuntimeError

source§

fn clone(&self) -> RuntimeError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RuntimeError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<D> Decode<ScryptoCustomValueKind, D> for RuntimeError

source§

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

source§

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 more
source§

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>)

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 more
source§

impl Display for RuntimeError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<E> Encode<ScryptoCustomValueKind, E> for RuntimeError

source§

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>

Encodes the SBOR body of the type to the encoder. Read more
source§

impl From<AccessControllerError> for RuntimeError

source§

fn from(value: AccessControllerError) -> RuntimeError

Converts to this type from the input type.
source§

impl From<AccountError> for RuntimeError

source§

fn from(value: AccountError) -> RuntimeError

Converts to this type from the input type.
source§

impl From<ApplicationError> for RuntimeError

source§

fn from(error: ApplicationError) -> RuntimeError

Converts to this type from the input type.
source§

impl From<BucketError> for RuntimeError

source§

fn from(bucket_error: BucketError) -> RuntimeError

Converts to this type from the input type.
source§

impl From<Error> for RuntimeError

source§

fn from(error: Error) -> RuntimeError

Converts to this type from the input type.
source§

impl From<Error> for RuntimeError

source§

fn from(error: Error) -> RuntimeError

Converts to this type from the input type.
source§

impl From<Error> for RuntimeError

source§

fn from(error: Error) -> RuntimeError

Converts to this type from the input type.
source§

impl<E> From<InvokeError<E>> for RuntimeError
where E: SelfError,

source§

fn from(error: InvokeError<E>) -> RuntimeError

Converts to this type from the input type.
source§

impl From<KernelError> for RuntimeError

source§

fn from(error: KernelError) -> RuntimeError

Converts to this type from the input type.
source§

impl<E> From<RuntimeError> for InvokeError<E>
where E: SelfError,

source§

fn from(runtime_error: RuntimeError) -> InvokeError<E>

Converts to this type from the input type.
source§

impl From<SystemModuleError> for RuntimeError

source§

fn from(error: SystemModuleError) -> RuntimeError

Converts to this type from the input type.
source§

impl From<SystemUpstreamError> for RuntimeError

source§

fn from(error: SystemUpstreamError) -> RuntimeError

Converts to this type from the input type.
source§

impl<T> From<T> for RuntimeError
where T: Into<CallFrameError>,

source§

fn from(value: T) -> RuntimeError

Converts to this type from the input type.
source§

impl From<TransactionProcessorError> for RuntimeError

source§

fn from(value: TransactionProcessorError) -> RuntimeError

Converts to this type from the input type.
source§

impl From<VaultError> for RuntimeError

source§

fn from(error: VaultError) -> RuntimeError

Converts to this type from the input type.
source§

impl PartialEq for RuntimeError

source§

fn eq(&self, other: &RuntimeError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl SborEnum<ScryptoCustomValueKind> for RuntimeError

source§

impl<'a, Y, V> ClientApi<RuntimeError> for SystemService<'a, Y, V>

source§

impl ClientApi<RuntimeError> for TestEnvironment

source§

impl Eq for RuntimeError

source§

impl StructuralPartialEq for RuntimeError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<U> As for U

§

fn as_<T>(self) -> T
where 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 more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for T
where T: 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>

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)

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)

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
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

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
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

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
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> ScryptoCategorize for T

source§

impl<T> ScryptoDecode for T

source§

impl<T> ScryptoDescribe for T

source§

impl<T> ScryptoEncode for T

source§

impl<T> ScryptoSbor for T

source§

impl<T> ScryptoSborEnum for T