pub struct ComputeAllocation(/* private fields */);
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.
source§impl TryFrom<i16> for ComputeAllocation
impl TryFrom<i16> for ComputeAllocation
source§impl TryFrom<i32> for ComputeAllocation
impl TryFrom<i32> for ComputeAllocation
source§impl TryFrom<i64> for ComputeAllocation
impl TryFrom<i64> for ComputeAllocation
source§impl TryFrom<i8> for ComputeAllocation
impl TryFrom<i8> for ComputeAllocation
source§impl TryFrom<u16> for ComputeAllocation
impl TryFrom<u16> for ComputeAllocation
source§impl TryFrom<u32> for ComputeAllocation
impl TryFrom<u32> for ComputeAllocation
source§impl TryFrom<u64> for ComputeAllocation
impl TryFrom<u64> for ComputeAllocation
source§impl TryFrom<u8> for ComputeAllocation
impl TryFrom<u8> for ComputeAllocation
impl Copy for ComputeAllocation
Auto Trait Implementations§
impl Freeze for ComputeAllocation
impl RefUnwindSafe for ComputeAllocation
impl Send for ComputeAllocation
impl Sync for ComputeAllocation
impl Unpin for ComputeAllocation
impl UnwindSafe for ComputeAllocation
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