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.
Performs copy-assignment from
source.
Read more
Formats the value using the given formatter.
Read more
Converts to this type from the input type.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Instruments this type with the provided [
Span], returning an
Instrumented wrapper.
Read more
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.