pub struct Client<T: TokenProvider> { /* private fields */ }Expand description
An authorised HTTPS client. See the module docs.
Implementations§
Source§impl<T: TokenProvider> Client<T>
impl<T: TokenProvider> Client<T>
Sourcepub fn new(tokens: T, cfg: HttpConfig) -> Result<Self>
pub fn new(tokens: T, cfg: HttpConfig) -> Result<Self>
A client authenticating with tokens.
Sourcepub fn config(&self) -> &HttpConfig
pub fn config(&self) -> &HttpConfig
The settings.
Trait Implementations§
Source§impl<T: TokenProvider> Transport for Client<T>
impl<T: TokenProvider> Transport for Client<T>
Source§type Send<'a> = impl Future<Output = Result<Response, Error>> + 'a
where
Self: 'a
type Send<'a> = impl Future<Output = Result<Response, Error>> + 'a where Self: 'a
Future of
send.Source§type Open<'a> = impl Future<Output = Result<(u16, Chunks), Error>> + 'a
where
Self: 'a
type Open<'a> = impl Future<Output = Result<(u16, Chunks), Error>> + 'a where Self: 'a
Future of
open.Auto Trait Implementations§
impl<T> !RefUnwindSafe for Client<T>
impl<T> !UnwindSafe for Client<T>
impl<T> Freeze for Client<T>where
T: Freeze,
impl<T> Send for Client<T>where
T: Send,
impl<T> Sync for Client<T>where
T: Sync,
impl<T> Unpin for Client<T>where
T: Unpin,
impl<T> UnsafeUnpin for Client<T>where
T: UnsafeUnpin,
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