Struct ic_utils::interfaces::management_canister::builders::FreezingThreshold
source · pub struct FreezingThreshold(/* private fields */);
Expand description
A freezing threshold for a canister. Can be anywhere from 0 to 2^64-1 inclusive.
This represents the time, in seconds, of ‘runway’ the IC tries to guarantee the canister. If the canister’s persistent costs, like storage, will likely lead it to run out of cycles within this amount of time, then the IC will ‘freeze’ the canister. Attempts to call its methods will be rejected unconditionally. The canister also cannot make any calls that push its cycle count into freezing threshold range.
Trait Implementations§
source§impl Clone for FreezingThreshold
impl Clone for FreezingThreshold
source§fn clone(&self) -> FreezingThreshold
fn clone(&self) -> FreezingThreshold
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 FreezingThreshold
impl Debug for FreezingThreshold
source§impl From<FreezingThreshold> for u64
impl From<FreezingThreshold> for u64
source§fn from(freezing_threshold: FreezingThreshold) -> Self
fn from(freezing_threshold: FreezingThreshold) -> Self
Converts to this type from the input type.
source§impl TryFrom<i128> for FreezingThreshold
impl TryFrom<i128> for FreezingThreshold
source§impl TryFrom<i16> for FreezingThreshold
impl TryFrom<i16> for FreezingThreshold
source§impl TryFrom<i32> for FreezingThreshold
impl TryFrom<i32> for FreezingThreshold
source§impl TryFrom<i64> for FreezingThreshold
impl TryFrom<i64> for FreezingThreshold
source§impl TryFrom<i8> for FreezingThreshold
impl TryFrom<i8> for FreezingThreshold
source§impl TryFrom<u128> for FreezingThreshold
impl TryFrom<u128> for FreezingThreshold
source§impl TryFrom<u16> for FreezingThreshold
impl TryFrom<u16> for FreezingThreshold
source§impl TryFrom<u32> for FreezingThreshold
impl TryFrom<u32> for FreezingThreshold
source§impl TryFrom<u64> for FreezingThreshold
impl TryFrom<u64> for FreezingThreshold
source§impl TryFrom<u8> for FreezingThreshold
impl TryFrom<u8> for FreezingThreshold
impl Copy for FreezingThreshold
Auto Trait Implementations§
impl Freeze for FreezingThreshold
impl RefUnwindSafe for FreezingThreshold
impl Send for FreezingThreshold
impl Sync for FreezingThreshold
impl Unpin for FreezingThreshold
impl UnwindSafe for FreezingThreshold
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