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.
Transport-specific error type this transport can generate.
Loading content...
Loading content...