pub struct ReservedCyclesLimit(/* private fields */);
Expand description
A reserved cycles limit for a canister. Can be anywhere from 0 to 2^128-1 inclusive.
This represents the upper limit of reserved_cycles for the canister.
Reserved cycles are cycles that the system sets aside for future use by the canister. If a subnet’s storage exceeds 450 GiB, then every time a canister allocates new storage bytes, the system sets aside some amount of cycles from the main balance of the canister. These reserved cycles will be used to cover future payments for the newly allocated bytes. The reserved cycles are not transferable and the amount of reserved cycles depends on how full the subnet is.
A reserved cycles limit of 0 disables the reservation mechanism for the canister. If so disabled, the canister will trap when it tries to allocate storage, if the subnet’s usage exceeds 450 GiB.
Trait Implementations§
source§impl Clone for ReservedCyclesLimit
impl Clone for ReservedCyclesLimit
source§fn clone(&self) -> ReservedCyclesLimit
fn clone(&self) -> ReservedCyclesLimit
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more