[][src]Struct traffic_signal_data::TrafficSignal

pub struct TrafficSignal {
    pub intersection_osm_node_id: i64,
    pub stages: Vec<Stage>,
    pub offset_seconds: usize,
}

Fields

intersection_osm_node_id: i64

The ID of the OSM node representing the intersection with the traffic signal. This node should be tagged highway = traffic_signals in OSM.

stages: Vec<Stage>

The traffic signal repeatedly cycles through these stages. During each stage, only some turns are protected and permitted through the intersection.

offset_seconds: usize

Relative to a central clock, delay the first stage by this many seconds.

Trait Implementations

impl Clone for TrafficSignal[src]

impl Debug for TrafficSignal[src]

impl<'de> Deserialize<'de> for TrafficSignal[src]

impl PartialEq<TrafficSignal> for TrafficSignal[src]

impl Serialize for TrafficSignal[src]

impl StructuralPartialEq for TrafficSignal[src]

Auto Trait Implementations

impl RefUnwindSafe for TrafficSignal

impl Send for TrafficSignal

impl Sync for TrafficSignal

impl Unpin for TrafficSignal

impl UnwindSafe for TrafficSignal

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.