pub struct ComputeAllocation(_);Expand description
A compute allocation for a canister, represented as a percentage between 0 and 100 inclusive.
This represents the percentage of a canister’s maximum compute capacity that the IC should commit to guaranteeing for the canister. If 0, computation is provided on a best-effort basis.
Trait Implementations§
source§impl Clone for ComputeAllocation
impl Clone for ComputeAllocation
source§fn clone(&self) -> ComputeAllocation
fn clone(&self) -> ComputeAllocation
Returns a copy of the value. Read more
1.0.0 · 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 ComputeAllocation
impl Debug for ComputeAllocation
source§impl From<ComputeAllocation> for u8
impl From<ComputeAllocation> for u8
source§fn from(compute_allocation: ComputeAllocation) -> Self
fn from(compute_allocation: ComputeAllocation) -> Self
Converts to this type from the input type.