pub struct Bus;
Expand description
Bus type that implements APIs. Can be either blocking or async
Trait Implementations§
source§impl BusRequests<LTAClient<Agent>> for Bus
impl BusRequests<LTAClient<Agent>> for Bus
source§fn get_arrival<'a>(
client: <AClient<Agent>,
bus_stop_code: u32,
service_no: impl Into<Option<&'a str>>
) -> LTAResult<BusArrivalResp>
fn get_arrival<'a>( client: <AClient<Agent>, bus_stop_code: u32, service_no: impl Into<Option<&'a str>> ) -> LTAResult<BusArrivalResp>
Returns real-time Bus Arrival information of Bus Services at a queried Bus Stop,
including Read more
source§fn get_bus_services(
client: &C,
skip: impl Into<Option<u32>>
) -> LTAResult<Vec<BusService>>
fn get_bus_services( client: &C, skip: impl Into<Option<u32>> ) -> LTAResult<Vec<BusService>>
Returns detailed service information for all buses currently in
operation, including: first stop, last stop, peak / offpeak frequency of
dispatch. Read more
source§impl BusRequests<LTAClient<Client>> for Bus
impl BusRequests<LTAClient<Client>> for Bus
source§fn get_arrival<'a>(
client: <AClient<ReqwestBlocking>,
bus_stop_code: u32,
service_no: impl Into<Option<&'a str>>
) -> LTAResult<BusArrivalResp>
fn get_arrival<'a>( client: <AClient<ReqwestBlocking>, bus_stop_code: u32, service_no: impl Into<Option<&'a str>> ) -> LTAResult<BusArrivalResp>
Returns real-time Bus Arrival information of Bus Services at a queried Bus Stop,
including Read more
source§fn get_bus_services(
client: &C,
skip: impl Into<Option<u32>>
) -> LTAResult<Vec<BusService>>
fn get_bus_services( client: &C, skip: impl Into<Option<u32>> ) -> LTAResult<Vec<BusService>>
Returns detailed service information for all buses currently in
operation, including: first stop, last stop, peak / offpeak frequency of
dispatch. Read more
source§impl BusRequests<LTAClient<Client>> for Bus
impl BusRequests<LTAClient<Client>> for Bus
source§async fn get_arrival<'a, S>(
client: <AClient<ReqwestAsync>,
bus_stop_code: u32,
service_no: S
) -> LTAResult<BusArrivalResp>
async fn get_arrival<'a, S>( client: <AClient<ReqwestAsync>, bus_stop_code: u32, service_no: S ) -> LTAResult<BusArrivalResp>
Returns real-time Bus Arrival information of Bus Services at a queried Bus Stop,
including Read more
source§async fn get_bus_services<S>(client: &C, skip: S) -> LTAResult<Vec<BusService>>
async fn get_bus_services<S>(client: &C, skip: S) -> LTAResult<Vec<BusService>>
Returns detailed service information for all buses currently in
operation, including: first stop, last stop, peak / offpeak frequency of
dispatch. Read more
source§impl Ord for Bus
impl Ord for Bus
source§impl PartialOrd for Bus
impl PartialOrd for Bus
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Bus
impl Eq for Bus
impl StructuralEq for Bus
impl StructuralPartialEq for Bus
Auto Trait Implementations§
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.