pub struct IcOps;Expand description
IcOps Ambient IC execution primitives
Implementations§
Source§impl IcOps
impl IcOps
Sourcepub fn canister_self() -> Principal
pub fn canister_self() -> Principal
Return the current canister principal.
Sourcepub fn msg_caller() -> Principal
pub fn msg_caller() -> Principal
Return the current caller principal.
Sourcepub fn now_millis() -> u64
pub fn now_millis() -> u64
Return the current UNIX epoch time in milliseconds.
Sourcepub fn now_micros() -> u64
pub fn now_micros() -> u64
Return the current UNIX epoch time in microseconds.
Auto Trait Implementations§
impl Freeze for IcOps
impl RefUnwindSafe for IcOps
impl Send for IcOps
impl Sync for IcOps
impl Unpin for IcOps
impl UnwindSafe for IcOps
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