pub struct EstimatedRuntime { /* private fields */ }Implementations§
Source§impl EstimatedRuntime
impl EstimatedRuntime
Sourcepub fn with_min_runtime_secs(self, min_runtime_secs: u64) -> Self
pub fn with_min_runtime_secs(self, min_runtime_secs: u64) -> Self
Sets the estimated runtime in seconds to fund the canister if it is below it.
Sourcepub fn with_fallback_min_cycles(self, fallback_min_cycles: u128) -> Self
pub fn with_fallback_min_cycles(self, fallback_min_cycles: u128) -> Self
Sets the fallback min cycles to trigger the funding operation when the estimated runtime is not available.
Sourcepub fn with_fallback_fund_cycles(self, fallback_fund_cycles: u128) -> Self
pub fn with_fallback_fund_cycles(self, fallback_fund_cycles: u128) -> Self
Sets the fallback cycles to fund the canister with when the estimated runtime is not available.
Sourcepub fn with_fund_runtime_secs(self, fund_runtime_secs: u64) -> Self
pub fn with_fund_runtime_secs(self, fund_runtime_secs: u64) -> Self
Sets the runtime seconds to add to the estimated runtime.
Sourcepub fn with_max_runtime_cycles_fund(self, max_runtime_cycles_fund: u128) -> Self
pub fn with_max_runtime_cycles_fund(self, max_runtime_cycles_fund: u128) -> Self
Sets the maximum cycles to fund the canister with, only used when the estimated runtime is available.
Sourcepub fn min_runtime_secs(&self) -> u64
pub fn min_runtime_secs(&self) -> u64
Get the estimated min runtime in seconds to trigger the funding operation.
Sourcepub fn fund_runtime_secs(&self) -> u64
pub fn fund_runtime_secs(&self) -> u64
Get the runtime seconds to add to the estimated runtime.
Sourcepub fn max_runtime_cycles_fund(&self) -> u128
pub fn max_runtime_cycles_fund(&self) -> u128
Get the maximum cycles to fund the canister with, only used when the estimated runtime is available.
Sourcepub fn fallback_min_cycles(&self) -> u128
pub fn fallback_min_cycles(&self) -> u128
Get the fallback min cycles to trigger the funding operation when the estimated runtime is not available.
Sourcepub fn fallback_fund_cycles(&self) -> u128
pub fn fallback_fund_cycles(&self) -> u128
Get the fallback cycles to fund the canister with when the estimated runtime is not available.
Trait Implementations§
Source§impl Clone for EstimatedRuntime
impl Clone for EstimatedRuntime
Source§fn clone(&self) -> EstimatedRuntime
fn clone(&self) -> EstimatedRuntime
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EstimatedRuntime
impl Debug for EstimatedRuntime
Source§impl Default for EstimatedRuntime
impl Default for EstimatedRuntime
impl Eq for EstimatedRuntime
Source§impl PartialEq for EstimatedRuntime
impl PartialEq for EstimatedRuntime
Source§fn eq(&self, other: &EstimatedRuntime) -> bool
fn eq(&self, other: &EstimatedRuntime) -> bool
self and other values to be equal, and is used by ==.