pub struct DeploymentWatchdogConfig { /* private fields */ }Expand description
Installation-owned watchdog settings.
Implementations§
Source§impl DeploymentWatchdogConfig
impl DeploymentWatchdogConfig
Sourcepub fn new(
enabled: bool,
check_interval_ms: u64,
stall_timeout_ms: u64,
) -> ContractResult<Self>
pub fn new( enabled: bool, check_interval_ms: u64, stall_timeout_ms: u64, ) -> ContractResult<Self>
Creates explicit watchdog settings.
Sourcepub fn is_enabled(self) -> bool
pub fn is_enabled(self) -> bool
Reports whether watchdog health affects Runtime health.
Sourcepub fn check_interval_ms(self) -> u64
pub fn check_interval_ms(self) -> u64
Returns the independent watchdog evaluation interval.
Sourcepub fn stall_timeout_ms(self) -> u64
pub fn stall_timeout_ms(self) -> u64
Returns the maximum interval without completed reconciliation.
Trait Implementations§
Source§impl Clone for DeploymentWatchdogConfig
impl Clone for DeploymentWatchdogConfig
Source§fn clone(&self) -> DeploymentWatchdogConfig
fn clone(&self) -> DeploymentWatchdogConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DeploymentWatchdogConfig
Source§impl Debug for DeploymentWatchdogConfig
impl Debug for DeploymentWatchdogConfig
Source§impl Default for DeploymentWatchdogConfig
impl Default for DeploymentWatchdogConfig
Source§impl<'de> Deserialize<'de> for DeploymentWatchdogConfigwhere
DeploymentWatchdogConfig: Default,
impl<'de> Deserialize<'de> for DeploymentWatchdogConfigwhere
DeploymentWatchdogConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DeploymentWatchdogConfig
Source§impl PartialEq for DeploymentWatchdogConfig
impl PartialEq for DeploymentWatchdogConfig
Source§impl Serialize for DeploymentWatchdogConfig
impl Serialize for DeploymentWatchdogConfig
impl StructuralPartialEq for DeploymentWatchdogConfig
Auto Trait Implementations§
impl Freeze for DeploymentWatchdogConfig
impl RefUnwindSafe for DeploymentWatchdogConfig
impl Send for DeploymentWatchdogConfig
impl Sync for DeploymentWatchdogConfig
impl Unpin for DeploymentWatchdogConfig
impl UnsafeUnpin for DeploymentWatchdogConfig
impl UnwindSafe for DeploymentWatchdogConfig
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