pub struct Client<C> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<C: Cache<Resource>> HttpRunner for Client<C>
impl<C: Cache<Resource>> HttpRunner for Client<C>
type Response = Response
fn run<T: Serialize>(&self, cmd: &mut Request<'_, T>) -> Result<Self::Response>
source§fn api_max_pages<T: Serialize>(&self, cmd: &Request<'_, T>) -> u32
fn api_max_pages<T: Serialize>(&self, cmd: &Request<'_, T>) -> u32
Return the number of API MAX PAGES allowed for the given Request.
source§fn throttle(&self, milliseconds: Milliseconds)
fn throttle(&self, milliseconds: Milliseconds)
Milliseconds to wait before executing the next request
source§fn throttle_range(&self, min: Milliseconds, max: Milliseconds)
fn throttle_range(&self, min: Milliseconds, max: Milliseconds)
Random wait time between the given range before submitting the next HTTP
request. The wait time is in milliseconds. The range is inclusive.
Auto Trait Implementations§
impl<C> !Freeze for Client<C>
impl<C> !RefUnwindSafe for Client<C>
impl<C> Send for Client<C>where
C: Send,
impl<C> Sync for Client<C>where
C: Sync,
impl<C> Unpin for Client<C>where
C: Unpin,
impl<C> !UnwindSafe for Client<C>
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