pub struct Traffic;Expand description
Traffic type that implements APIs. Can be either blocking or async
Trait Implementationsยง
Sourceยงimpl Ord for Traffic
impl Ord for Traffic
1.21.0 ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Sourceยงimpl PartialOrd for Traffic
impl PartialOrd for Traffic
Sourceยงimpl TrafficRequests<LTAClient> for Traffic
impl TrafficRequests<LTAClient> for Traffic
Sourceยงfn get_erp_rates<'life0, 'async_trait, S>(
client: &'life0 LTAClient,
skip: S,
) -> Pin<Box<dyn Future<Output = LTAResult<Vec<ErpRate>>> + Send + 'async_trait>>
fn get_erp_rates<'life0, 'async_trait, S>( client: &'life0 LTAClient, skip: S, ) -> Pin<Box<dyn Future<Output = LTAResult<Vec<ErpRate>>> + Send + 'async_trait>>
Returns ERP rates of all vehicle types across all timings for each
zone. Read more
Sourceยงfn get_carpark_avail<'life0, 'async_trait, S>(
client: &'life0 LTAClient,
skip: S,
) -> Pin<Box<dyn Future<Output = LTAResult<Vec<CarPark>>> + Send + 'async_trait>>
fn get_carpark_avail<'life0, 'async_trait, S>( client: &'life0 LTAClient, skip: S, ) -> Pin<Box<dyn Future<Output = LTAResult<Vec<CarPark>>> + Send + 'async_trait>>
Returns no. of available lots for HDB, LTA and URA carpark data.
The LTA carpark data consist of major shopping malls and developments within
Orchard, Marina, HarbourFront, Jurong Lake District.
(Note: list of LTA carpark data available on this API is subset of those listed on
One.Motoring and MyTransport Portals) Read more
Sourceยงfn get_est_travel_time<'life0, 'async_trait, S>(
client: &'life0 LTAClient,
skip: S,
) -> Pin<Box<dyn Future<Output = LTAResult<Vec<EstTravelTime>>> + Send + 'async_trait>>
fn get_est_travel_time<'life0, 'async_trait, S>( client: &'life0 LTAClient, skip: S, ) -> Pin<Box<dyn Future<Output = LTAResult<Vec<EstTravelTime>>> + Send + 'async_trait>>
Returns estimated travel times of expressways (in segments). Read more
Sourceยงfn get_faulty_traffic_lights<'life0, 'async_trait, S>(
client: &'life0 LTAClient,
skip: S,
) -> Pin<Box<dyn Future<Output = LTAResult<Vec<FaultyTrafficLight>>> + Send + 'async_trait>>
fn get_faulty_traffic_lights<'life0, 'async_trait, S>( client: &'life0 LTAClient, skip: S, ) -> Pin<Box<dyn Future<Output = LTAResult<Vec<FaultyTrafficLight>>> + Send + 'async_trait>>
Returns alerts of traffic lights that are currently faulty, or currently
undergoing scheduled maintenance. Read more
Sourceยงfn get_road_details<'life0, 'async_trait, S>(
client: &'life0 LTAClient,
road_details_type: RoadDetailsType,
skip: S,
) -> Pin<Box<dyn Future<Output = LTAResult<Vec<RoadDetails>>> + Send + 'async_trait>>
fn get_road_details<'life0, 'async_trait, S>( client: &'life0 LTAClient, road_details_type: RoadDetailsType, skip: S, ) -> Pin<Box<dyn Future<Output = LTAResult<Vec<RoadDetails>>> + Send + 'async_trait>>
Returns all planned road openings or road works depending on the
RoadDetailsType supplied Read moreSourceยงfn get_traffic_speed_band<'life0, 'async_trait, S>(
client: &'life0 LTAClient,
skip: S,
) -> Pin<Box<dyn Future<Output = LTAResult<Vec<TrafficSpeedBand>>> + Send + 'async_trait>>
fn get_traffic_speed_band<'life0, 'async_trait, S>( client: &'life0 LTAClient, skip: S, ) -> Pin<Box<dyn Future<Output = LTAResult<Vec<TrafficSpeedBand>>> + Send + 'async_trait>>
Returns current traffic speeds on expressways and arterial roads,
expressed in speed bands. Read more
Sourceยงfn get_traffic_images<'life0, 'async_trait, S>(
client: &'life0 LTAClient,
skip: S,
) -> Pin<Box<dyn Future<Output = LTAResult<Vec<TrafficImage>>> + Send + 'async_trait>>
fn get_traffic_images<'life0, 'async_trait, S>( client: &'life0 LTAClient, skip: S, ) -> Pin<Box<dyn Future<Output = LTAResult<Vec<TrafficImage>>> + Send + 'async_trait>>
Returns links to images of live traffic conditions along expressways and
Woodlands & Tuas Checkpoints. Read more
Sourceยงfn get_traffic_incidents<'life0, 'async_trait, S>(
client: &'life0 LTAClient,
skip: S,
) -> Pin<Box<dyn Future<Output = LTAResult<Vec<TrafficIncident>>> + Send + 'async_trait>>
fn get_traffic_incidents<'life0, 'async_trait, S>( client: &'life0 LTAClient, skip: S, ) -> Pin<Box<dyn Future<Output = LTAResult<Vec<TrafficIncident>>> + Send + 'async_trait>>
Returns current traffic speeds on expressways and arterial roads,
expressed in speed bands. Read more
Sourceยงfn get_vms_emas<'life0, 'async_trait, S>(
client: &'life0 LTAClient,
skip: S,
) -> Pin<Box<dyn Future<Output = LTAResult<Vec<Vms>>> + Send + 'async_trait>>
fn get_vms_emas<'life0, 'async_trait, S>( client: &'life0 LTAClient, skip: S, ) -> Pin<Box<dyn Future<Output = LTAResult<Vec<Vms>>> + Send + 'async_trait>>
Returns traffic advisories (via variable message services) concerning
current traffic conditions that are displayed on EMAS signboards
along expressways and arterial roads. Read more
impl Copy for Traffic
impl Eq for Traffic
impl StructuralPartialEq for Traffic
Auto Trait Implementationsยง
impl Freeze for Traffic
impl RefUnwindSafe for Traffic
impl Send for Traffic
impl Sync for Traffic
impl Unpin for Traffic
impl UnwindSafe for Traffic
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.