pub struct NextState<T> {
pub next_state: T,
pub duration_until: Option<f64>,
}Expand description
Defines a next state of a generic type.
Fields§
§next_state: TThe next state.
duration_until: Option<f64>The default time before transitioning to the next state. This is relative to when the current state began. It is just a recommendation, the actual duration is determined by the StateProvider 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<T> Freeze for NextState<T>where
T: Freeze,
impl<T> RefUnwindSafe for NextState<T>where
T: RefUnwindSafe,
impl<T> Send for NextState<T>where
T: Send,
impl<T> Sync for NextState<T>where
T: Sync,
impl<T> Unpin for NextState<T>where
T: Unpin,
impl<T> UnwindSafe for NextState<T>where
T: UnwindSafe,
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