pub struct CyclesConsumed {
pub memory: Nat,
pub compute_allocation: Nat,
pub ingress_induction: Nat,
pub instructions: Nat,
pub request_and_response_transmission: Nat,
pub uninstall: Nat,
pub canister_creation: Nat,
pub http_outcalls: Nat,
pub burned_cycles: Nat,
}Expand description
§Cycles Consumed.
Breakdown of cycles consumed by a canister.
Fields§
§memory: NatCycles consumed for memory storage.
compute_allocation: NatCycles consumed for compute allocation.
ingress_induction: NatCycles consumed for ingress induction.
instructions: NatCycles consumed for instruction execution.
request_and_response_transmission: NatCycles consumed for request and response transmission.
uninstall: NatCycles consumed when the canister was uninstalled by the system due to running out of cycles.
This is only updated on system-triggered uninstallation (i.e. the canister ran out of
cycles). Explicit calls to uninstall_code
do not update this metric; in that case other metrics (e.g. ingress_induction)
may be updated instead.
canister_creation: NatCycles consumed for canister creation.
http_outcalls: NatCycles consumed for HTTP outcalls.
burned_cycles: NatCycles burned (i.e. not returned to the canister).
Trait Implementations§
Source§impl CandidType for CyclesConsumed
impl CandidType for CyclesConsumed
Source§impl Clone for CyclesConsumed
impl Clone for CyclesConsumed
Source§fn clone(&self) -> CyclesConsumed
fn clone(&self) -> CyclesConsumed
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CyclesConsumed
impl Debug for CyclesConsumed
Source§impl<'de> Deserialize<'de> for CyclesConsumed
impl<'de> Deserialize<'de> for CyclesConsumed
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CyclesConsumed, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CyclesConsumed, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CyclesConsumed
Source§impl Hash for CyclesConsumed
impl Hash for CyclesConsumed
Source§impl Ord for CyclesConsumed
impl Ord for CyclesConsumed
Source§fn cmp(&self, other: &CyclesConsumed) -> Ordering
fn cmp(&self, other: &CyclesConsumed) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CyclesConsumed
impl PartialEq for CyclesConsumed
Source§impl PartialOrd for CyclesConsumed
impl PartialOrd for CyclesConsumed
Source§impl Serialize for CyclesConsumed
impl Serialize for CyclesConsumed
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for CyclesConsumed
Auto Trait Implementations§
impl Freeze for CyclesConsumed
impl RefUnwindSafe for CyclesConsumed
impl Send for CyclesConsumed
impl Sync for CyclesConsumed
impl Unpin for CyclesConsumed
impl UnsafeUnpin for CyclesConsumed
impl UnwindSafe for CyclesConsumed
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.