[][src]Struct pubnub_hyper::transport::hyper::Hyper

pub struct Hyper { /* fields omitted */ }

Implements transport for PubNub using the hyper crate to communicate with the PubNub REST API.

Methods

impl Hyper[src]

pub fn http_client(&self) -> &Client<HttpsConnector<HttpConnector>>[src]

An HTTP client to use.

pub fn subscribe_key(&self) -> &String[src]

Subscribe key to use in requests.

pub fn publish_key(&self) -> &String[src]

Publish key to use in requests.

pub fn origin(&self) -> &String[src]

The authority URL part to use to connet to the PubNub edge network

pub fn agent(&self) -> &String[src]

User-Agent header value to use at HTTP requests.

pub fn uuid(&self) -> &UUID[src]

A UUID to identify as.

impl Hyper[src]

#[must_use]pub fn new() -> HyperBuilder[src]

Produces a builder that can be used to construct Hyper transport.

Trait Implementations

impl Clone for Hyper[src]

impl Debug for Hyper[src]

impl Service<GetState> for Hyper[src]

type Response = GetState

Response given by the service.

type Error = Error

Error produced by the service.

impl Service<GlobalHereNow<Full>> for Hyper[src]

type Response = GlobalHereNow<Full>

Response given by the service.

type Error = Error

Error produced by the service.

impl Service<GlobalHereNow<OccupancyAndUUIDs>> for Hyper[src]

type Response = GlobalHereNow<OccupancyAndUUIDs>

Response given by the service.

type Error = Error

Error produced by the service.

impl Service<GlobalHereNow<OccupancyOnly>> for Hyper[src]

type Response = GlobalHereNow<OccupancyOnly>

Response given by the service.

type Error = Error

Error produced by the service.

impl Service<HereNow<Full>> for Hyper[src]

type Response = HereNow<Full>

Response given by the service.

type Error = Error

Error produced by the service.

impl Service<HereNow<OccupancyAndUUIDs>> for Hyper[src]

type Response = HereNow<OccupancyAndUUIDs>

Response given by the service.

type Error = Error

Error produced by the service.

impl Service<HereNow<OccupancyOnly>> for Hyper[src]

type Response = HereNow<OccupancyOnly>

Response given by the service.

type Error = Error

Error produced by the service.

impl Service<Publish> for Hyper[src]

type Response = Publish

Response given by the service.

type Error = Error

Error produced by the service.

impl Service<SetState> for Hyper[src]

type Response = SetState

Response given by the service.

type Error = Error

Error produced by the service.

impl Service<Subscribe> for Hyper[src]

type Response = Subscribe

Response given by the service.

type Error = Error

Error produced by the service.

impl Service<WhereNow> for Hyper[src]

type Response = WhereNow

Response given by the service.

type Error = Error

Error produced by the service.

impl Transport for Hyper[src]

type Error = Error

Transport-specific error type this transport can generate.

Auto Trait Implementations

impl !RefUnwindSafe for Hyper

impl Send for Hyper

impl Sync for Hyper

impl Unpin for Hyper

impl !UnwindSafe for Hyper

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,