Enum map_model::objects::traffic_signals::StageType
source · 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§
source§impl StageType
impl StageType
pub fn simple_duration(&self) -> Duration
Trait Implementations§
source§impl<'de> Deserialize<'de> for StageType
impl<'de> Deserialize<'de> for StageType
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
source§impl PartialEq for StageType
impl PartialEq for StageType
impl StructuralPartialEq for StageType
Auto Trait Implementations§
impl Freeze for StageType
impl RefUnwindSafe for StageType
impl Send for StageType
impl Sync for StageType
impl Unpin for StageType
impl UnwindSafe for StageType
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