pub struct WatcherCall { /* private fields */ }Implementations§
Source§impl WatcherCall
impl WatcherCall
Sourcepub fn cycles_consumed(&self) -> u64
pub fn cycles_consumed(&self) -> u64
The amount of cycles consumed by this call.
Sourcepub fn cycles_sent(&self) -> u64
pub fn cycles_sent(&self) -> u64
The amount of cycles sent to the call.
Sourcepub fn cycles_refunded(&self) -> u64
pub fn cycles_refunded(&self) -> u64
The amount of cycles refunded from the call.
Sourcepub fn args<T: for<'de> ArgumentDecoder<'de>>(&self) -> T
pub fn args<T: for<'de> ArgumentDecoder<'de>>(&self) -> T
Return the arguments passed to the call.
Sourcepub fn method_name(&self) -> &str
pub fn method_name(&self) -> &str
Name of the method that was called.
Sourcepub fn canister_id(&self) -> Principal
pub fn canister_id(&self) -> Principal
Canister ID that was target of the call.
Auto Trait Implementations§
impl Freeze for WatcherCall
impl RefUnwindSafe for WatcherCall
impl Send for WatcherCall
impl Sync for WatcherCall
impl Unpin for WatcherCall
impl UnwindSafe for WatcherCall
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