[][src]Trait screeps_api::HyperClient

pub trait HyperClient<C> where
    C: Connect
{ fn client(&self) -> &Client<C>; }

A generic trait over hyper's Client which allows for references, owned clients, and Arc<hyper::Client> to be used.

Required methods

fn client(&self) -> &Client<C>

Get a reference to this client.

Loading content...

Implementations on Foreign Types

impl<C> HyperClient<C> for Client<C> where
    C: Connect
[src]

impl<'a, C> HyperClient<C> for &'a Client<C> where
    C: Connect
[src]

impl<C> HyperClient<C> for Arc<Client<C>> where
    C: Connect
[src]

impl<C> HyperClient<C> for Rc<Client<C>> where
    C: Connect
[src]

Loading content...

Implementors

Loading content...