[][src]Trait pubnub_hyper::core::Transport

pub trait Transport: Service<Publish, Response = Timetoken, Error = Self::Error, Response = (Vec<Message>, Timetoken), Error = Self::Error, Response = (), Error = Self::Error, Response = JsonValue, Error = Self::Error, Response = <OccupancyOnly as RespondWith>::Response, Error = Self::Error, Response = <OccupancyAndUUIDs as RespondWith>::Response, Error = Self::Error, Response = <Full as RespondWith>::Response, Error = Self::Error, Response = GlobalInfo<OccupancyOnly>, Error = Self::Error, Response = GlobalInfo<OccupancyAndUUIDs>, Error = Self::Error, Response = GlobalInfo<Full>, Error = Self::Error, Response = Vec<Name>, Error = Self::Error> + Service<Subscribe> + Service<SetState> + Service<GetState> + Service<HereNow<OccupancyOnly>> + Service<HereNow<OccupancyAndUUIDs>> + Service<HereNow<Full>> + Service<GlobalHereNow<OccupancyOnly>> + Service<GlobalHereNow<OccupancyAndUUIDs>> + Service<GlobalHereNow<Full>> + Service<WhereNow> + Clone + Send + Sync {
    type Error: Error + Send + Sync;
}

Transport abstracts away the underlying mechanism through which the PubNub client communicates with the PubNub network.

Associated Types

type Error: Error + Send + Sync

Transport-specific error type this transport can generate.

Loading content...

Implementors

impl Transport for MockTransport[src]

impl Transport for Hyper[src]

type Error = Error

Loading content...