[][src]Trait pubnub_core::Transport

pub trait Transport: Clone + Send + Sync + Service<Publish, Response = Publish, Error = Self::Error> + Service<Subscribe, Response = Subscribe, Error = Self::Error> + Service<SetState, Response = SetState, Error = Self::Error> + Service<GetState, Response = GetState, Error = Self::Error> + Service<HereNow<OccupancyOnly>, Response = HereNow<OccupancyOnly>, Error = Self::Error> + Service<HereNow<OccupancyAndUUIDs>, Response = HereNow<OccupancyAndUUIDs>, Error = Self::Error> + Service<HereNow<Full>, Response = HereNow<Full>, Error = Self::Error> + Service<GlobalHereNow<OccupancyOnly>, Response = GlobalHereNow<OccupancyOnly>, Error = Self::Error> + Service<GlobalHereNow<OccupancyAndUUIDs>, Response = GlobalHereNow<OccupancyAndUUIDs>, Error = Self::Error> + Service<GlobalHereNow<Full>, Response = GlobalHereNow<Full>, Error = Self::Error> + Service<WhereNow, Response = WhereNow, Error = Self::Error> {
    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

Loading content...