pub struct Runtime {}Implementations§
Source§impl Runtime
impl Runtime
pub fn emit_event<Y: SystemApi<E>, E: SystemApiError, T: ScryptoEncode + ScryptoDescribe + ScryptoEvent>( api: &mut Y, event: T, ) -> Result<(), E>
pub fn emit_event_no_revert<Y: SystemApi<E>, E: SystemApiError, T: ScryptoEncode + ScryptoDescribe + ScryptoEvent>( api: &mut Y, event: T, ) -> Result<(), E>
pub fn current_epoch<Y: SystemObjectApi<E>, E: SystemApiError>( api: &mut Y, ) -> Result<Epoch, E>
pub fn current_time<Y: SystemObjectApi<E>, E: SystemApiError>( precision: TimePrecision, api: &mut Y, ) -> Result<Instant, E>
pub fn compare_against_current_time<Y: SystemObjectApi<E>, E: SystemApiError>( instant: Instant, precision: TimePrecision, operator: TimeComparisonOperator, api: &mut Y, ) -> Result<bool, E>
pub fn generate_ruid<Y: SystemApi<E>, E: SystemApiError>( api: &mut Y, ) -> Result<[u8; 32], E>
pub fn assert_access_rule<Y: SystemApi<E>, E: SystemApiError>( rule: AccessRule, api: &mut Y, ) -> Result<(), E>
pub fn get_node_id<Y: SystemApi<E>, E: SystemApiError>( api: &mut Y, ) -> Result<NodeId, E>
pub fn package_address<Y: SystemApi<E>, E: SystemApiError>( api: &mut Y, ) -> Result<PackageAddress, E>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Runtime
impl RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnsafeUnpin for Runtime
impl UnwindSafe for Runtime
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