pub struct AuthModule {
pub v1_transaction_processor_proofs_for_injection: Option<AuthZoneInit>,
}
Fields§
§v1_transaction_processor_proofs_for_injection: Option<AuthZoneInit>
SystemV1 only - we special-case the initial transaction processor function call and add virtual resources to the transaction processor call frame
Implementations§
Source§impl AuthModule
impl AuthModule
pub fn new() -> AuthModule
pub fn new_with_transaction_processor_auth_zone( auth_zone_init: AuthZoneInit, ) -> AuthModule
pub fn on_call_function<Y>(
system: &mut SystemService<'_, Y>,
blueprint_id: &BlueprintId,
ident: &str,
) -> Result<NodeId, RuntimeError>where
Y: SystemBasedKernelApi,
pub fn on_call_function_finish<Y>(
api: &mut SystemService<'_, Y>,
auth_zone: NodeId,
) -> Result<(), RuntimeError>where
Y: SystemBasedKernelApi,
pub fn on_call_method<Y>(
api: &mut SystemService<'_, Y>,
receiver: &NodeId,
module_id: ModuleId,
direct_access: bool,
ident: &str,
args: &IndexedScryptoValue,
) -> Result<NodeId, RuntimeError>where
Y: SystemBasedKernelApi,
pub fn on_call_method_finish<Y>(
api: &mut SystemService<'_, Y>,
auth_zone: NodeId,
) -> Result<(), RuntimeError>where
Y: SystemBasedKernelApi,
Sourcepub fn on_call_fn_mock<Y>(
system: &mut SystemService<'_, Y>,
receiver: Option<(&NodeId, bool)>,
simulate_all_proofs_under_resources: BTreeSet<ResourceAddress>,
implicit_non_fungible_proofs: BTreeSet<NonFungibleGlobalId>,
) -> Result<NodeId, RuntimeError>where
Y: SystemBasedKernelApi,
pub fn on_call_fn_mock<Y>(
system: &mut SystemService<'_, Y>,
receiver: Option<(&NodeId, bool)>,
simulate_all_proofs_under_resources: BTreeSet<ResourceAddress>,
implicit_non_fungible_proofs: BTreeSet<NonFungibleGlobalId>,
) -> Result<NodeId, RuntimeError>where
Y: SystemBasedKernelApi,
On CALL_FUNCTION or CALL_METHOD, when auth module is disabled.
pub fn teardown_auth_zone<Y>(
api: &mut SystemService<'_, Y>,
self_auth_zone: NodeId,
) -> Result<(), RuntimeError>where
Y: SystemBasedKernelApi,
Trait Implementations§
Source§impl Clone for AuthModule
impl Clone for AuthModule
Source§fn clone(&self) -> AuthModule
fn clone(&self) -> AuthModule
Returns a duplicate 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 AuthModule
impl Debug for AuthModule
Source§impl InitSystemModule for AuthModule
impl InitSystemModule for AuthModule
fn init(&mut self) -> Result<(), BootloadingError>
fn on_teardown(&mut self) -> Result<(), RuntimeError>
Source§impl PrivilegedSystemModule for AuthModule
impl PrivilegedSystemModule for AuthModule
fn privileged_before_invoke( _api: &mut impl SystemBasedKernelApi, _invocation: &KernelInvocation<Actor>, ) -> Result<(), RuntimeError>
Source§impl ResolvableSystemModule for AuthModule
impl ResolvableSystemModule for AuthModule
fn resolve_from_system(system: &mut impl HasModules) -> &mut AuthModule
Source§impl<ModuleApi> SystemModule<ModuleApi> for AuthModulewhere
ModuleApi: SystemModuleApiFor<AuthModule>,
impl<ModuleApi> SystemModule<ModuleApi> for AuthModulewhere
ModuleApi: SystemModuleApiFor<AuthModule>,
fn before_invoke( _api: &mut ModuleApi, _invocation: &KernelInvocation<Actor>, ) -> Result<(), RuntimeError>
fn on_execution_start(_api: &mut ModuleApi) -> Result<(), RuntimeError>
fn on_execution_finish( _api: &mut ModuleApi, _message: &CallFrameMessage, ) -> Result<(), RuntimeError>
fn after_invoke( _api: &mut ModuleApi, _output: &IndexedScryptoValue, ) -> Result<(), RuntimeError>
fn on_pin_node( _api: &mut ModuleApi, _node_id: &NodeId, ) -> Result<(), RuntimeError>
fn on_allocate_node_id( _api: &mut ModuleApi, _entity_type: EntityType, ) -> Result<(), RuntimeError>
fn on_create_node( _api: &mut ModuleApi, _event: &CreateNodeEvent<'_>, ) -> Result<(), RuntimeError>
fn on_move_module( _api: &mut ModuleApi, _event: &MoveModuleEvent<'_>, ) -> Result<(), RuntimeError>
fn on_drop_node( _api: &mut ModuleApi, _event: &DropNodeEvent<'_>, ) -> Result<(), RuntimeError>
fn on_mark_substate_as_transient( _api: &mut ModuleApi, _node_id: &NodeId, _partition_number: &PartitionNumber, _substate_key: &SubstateKey, ) -> Result<(), RuntimeError>
fn on_open_substate( _api: &mut ModuleApi, _event: &OpenSubstateEvent<'_>, ) -> Result<(), RuntimeError>
fn on_read_substate( _api: &mut ModuleApi, _event: &ReadSubstateEvent<'_>, ) -> Result<(), RuntimeError>
fn on_write_substate( _api: &mut ModuleApi, _event: &WriteSubstateEvent<'_>, ) -> Result<(), RuntimeError>
fn on_close_substate( _api: &mut ModuleApi, _event: &CloseSubstateEvent, ) -> Result<(), RuntimeError>
fn on_set_substate( _api: &mut ModuleApi, _event: &SetSubstateEvent<'_>, ) -> Result<(), RuntimeError>
fn on_remove_substate( _api: &mut ModuleApi, _event: &RemoveSubstateEvent<'_>, ) -> Result<(), RuntimeError>
fn on_scan_keys( _api: &mut ModuleApi, _event: &ScanKeysEvent<'_>, ) -> Result<(), RuntimeError>
fn on_drain_substates( _api: &mut ModuleApi, _event: &DrainSubstatesEvent<'_>, ) -> Result<(), RuntimeError>
fn on_scan_sorted_substates( _api: &mut ModuleApi, _event: &ScanSortedSubstatesEvent<'_>, ) -> Result<(), RuntimeError>
fn on_get_stack_id(_api: &mut ModuleApi) -> Result<(), RuntimeError>
fn on_switch_stack(_api: &mut ModuleApi) -> Result<(), RuntimeError>
fn on_send_to_stack( _api: &mut ModuleApi, _data_len: usize, ) -> Result<(), RuntimeError>
fn on_set_call_frame_data( _api: &mut ModuleApi, _data_len: usize, ) -> Result<(), RuntimeError>
fn on_get_owned_nodes(_api: &mut ModuleApi) -> Result<(), RuntimeError>
Auto Trait Implementations§
impl Freeze for AuthModule
impl RefUnwindSafe for AuthModule
impl Send for AuthModule
impl Sync for AuthModule
impl Unpin for AuthModule
impl UnwindSafe for AuthModule
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> DowncastSync for T
impl<T> DowncastSync for T
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