pub trait WithMaxSeconds<T> {
// Required methods
fn max_seconds(&self) -> Option<u32>;
fn with_max_seconds(&self, seconds: u32) -> T;
}Expand description
Configure the max allowed runtime
Required Methods§
Sourcefn max_seconds(&self) -> Option<u32>
fn max_seconds(&self) -> Option<u32>
get max runtime
Sourcefn with_max_seconds(&self, seconds: u32) -> T
fn with_max_seconds(&self, seconds: u32) -> T
set max runtime