pub struct Bus;Expand description
Bus type that implements APIs. Can be either blocking or async
Trait Implementationsยง
Sourceยงimpl BusRequests<LTAClient> for Bus
impl BusRequests<LTAClient> for Bus
Sourceยงfn get_arrival<'a, 'life0, 'async_trait, S>(
client: &'life0 LTAClient,
bus_stop_code: u32,
service_no: S,
) -> Pin<Box<dyn Future<Output = LTAResult<BusArrivalResp>> + Send + 'async_trait>>
fn get_arrival<'a, 'life0, 'async_trait, S>( client: &'life0 LTAClient, bus_stop_code: u32, service_no: S, ) -> Pin<Box<dyn Future<Output = LTAResult<BusArrivalResp>> + Send + 'async_trait>>
Returns real-time Bus Arrival information of Bus Services at a queried Bus Stop,
including Read more
Sourceยงfn get_bus_services<'life0, 'async_trait, S>(
client: &'life0 LTAClient,
skip: S,
) -> Pin<Box<dyn Future<Output = LTAResult<Vec<BusService>>> + Send + 'async_trait>>
fn get_bus_services<'life0, 'async_trait, S>( client: &'life0 LTAClient, skip: S, ) -> Pin<Box<dyn Future<Output = LTAResult<Vec<BusService>>> + Send + 'async_trait>>
Returns detailed service information for all buses currently in
operation, including: first stop, last stop, peak / offpeak frequency of
dispatch. Read more
Sourceยงfn get_bus_routes<'life0, 'async_trait, S>(
client: &'life0 LTAClient,
skip: S,
) -> Pin<Box<dyn Future<Output = LTAResult<Vec<BusRoute>>> + Send + 'async_trait>>
fn get_bus_routes<'life0, 'async_trait, S>( client: &'life0 LTAClient, skip: S, ) -> Pin<Box<dyn Future<Output = LTAResult<Vec<BusRoute>>> + Send + 'async_trait>>
Returns detailed route information for all services currently in operation,
including: all bus stops along each route, first/last bus timings for each stop Read more
Sourceยงfn get_bus_stops<'life0, 'async_trait, S>(
client: &'life0 LTAClient,
skip: S,
) -> Pin<Box<dyn Future<Output = LTAResult<Vec<BusStop>>> + Send + 'async_trait>>
fn get_bus_stops<'life0, 'async_trait, S>( client: &'life0 LTAClient, skip: S, ) -> Pin<Box<dyn Future<Output = LTAResult<Vec<BusStop>>> + Send + 'async_trait>>
Returns detailed information for all bus stops currently being serviced by
buses, including: Bus Stop Code, location coordinates. Read more
Sourceยงimpl Ord for Bus
impl Ord for Bus
Sourceยงimpl PartialOrd for Bus
impl PartialOrd for Bus
impl Copy for Bus
impl Eq for Bus
impl StructuralPartialEq for Bus
Auto Trait Implementationsยง
impl Freeze for Bus
impl RefUnwindSafe for Bus
impl Send for Bus
impl Sync for Bus
impl Unpin for Bus
impl UnwindSafe for Bus
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.