pub struct NextPhase {
pub next_phase: Phase,
pub duration_until: Option<f64>,
}Expand description
Defines a phase that comes after another Phase. Used as a return type by:
Fields§
§next_phase: PhaseThe next phase.
duration_until: Option<f64>The default time before transitioning to the next phase. This is relative to when the current phase began. It is just a recommendation, the actual duration is determined by the PhaseProvider and may depend on events like a vehicle arriving at a left-turn lane or a pedestrian hitting a crosswalk button.
Auto Trait Implementations§
impl Freeze for NextPhase
impl RefUnwindSafe for NextPhase
impl !Send for NextPhase
impl !Sync for NextPhase
impl Unpin for NextPhase
impl UnwindSafe for NextPhase
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