pub enum StageType {
Fixed(Duration),
Variable(Duration, Duration, Duration),
}
Variants
Fixed(Duration)
Variable(Duration, Duration, Duration)
Minimum is the minimum duration, 0 allows cycle to be skipped if no demand. Delay is the elapsed time with no demand that ends a cycle. Additional is the additional duration for an extended cycle.
Implementations
sourceimpl StageType
impl StageType
pub fn simple_duration(&self) -> Duration
Trait Implementations
sourceimpl<'de> Deserialize<'de> for StageType
impl<'de> Deserialize<'de> for StageType
sourcefn 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 StructuralPartialEq for StageType
Auto Trait Implementations
impl RefUnwindSafe for StageType
impl Send for StageType
impl Sync for StageType
impl Unpin for StageType
impl UnwindSafe for StageType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more