pub struct WrappedKernelInternalApi<'a, E: KernelTransactionExecutor + 'a, K: KernelInternalApi<System = InjectCostingError<E>>> { /* private fields */ }
Trait Implementations§
Source§impl<'a, E: KernelTransactionExecutor + 'a, K: KernelInternalApi<System = InjectCostingError<E>>> KernelInternalApi for WrappedKernelInternalApi<'a, E, K>
impl<'a, E: KernelTransactionExecutor + 'a, K: KernelInternalApi<System = InjectCostingError<E>>> KernelInternalApi for WrappedKernelInternalApi<'a, E, K>
type System = E
Source§fn kernel_get_system_state(&mut self) -> SystemState<'_, E>
fn kernel_get_system_state(&mut self) -> SystemState<'_, E>
Returns the system state.
Source§fn kernel_get_current_stack_depth_uncosted(&self) -> usize
fn kernel_get_current_stack_depth_uncosted(&self) -> usize
Returns the current stack depth. Read more
Source§fn kernel_get_current_stack_id_uncosted(&self) -> usize
fn kernel_get_current_stack_id_uncosted(&self) -> usize
Returns the current stack id. Read more
Source§fn kernel_get_node_visibility_uncosted(
&self,
node_id: &NodeId,
) -> NodeVisibility
fn kernel_get_node_visibility_uncosted( &self, node_id: &NodeId, ) -> NodeVisibility
Returns the visibility of a node. Read more
Source§fn kernel_read_substate_uncosted(
&self,
node_id: &NodeId,
partition_num: PartitionNumber,
substate_key: &SubstateKey,
) -> Option<&IndexedScryptoValue>
fn kernel_read_substate_uncosted( &self, node_id: &NodeId, partition_num: PartitionNumber, substate_key: &SubstateKey, ) -> Option<&IndexedScryptoValue>
Returns the value of a substate. Read more
Source§fn kernel_get_system(&mut self) -> &mut Self::System
fn kernel_get_system(&mut self) -> &mut Self::System
Returns the system.
Auto Trait Implementations§
impl<'a, E, K> Freeze for WrappedKernelInternalApi<'a, E, K>
impl<'a, E, K> RefUnwindSafe for WrappedKernelInternalApi<'a, E, K>where
K: RefUnwindSafe,
impl<'a, E, K> Send for WrappedKernelInternalApi<'a, E, K>where
K: Send,
impl<'a, E, K> Sync for WrappedKernelInternalApi<'a, E, K>where
K: Sync,
impl<'a, E, K> Unpin for WrappedKernelInternalApi<'a, E, K>
impl<'a, E, K> !UnwindSafe for WrappedKernelInternalApi<'a, E, K>
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> 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