pub struct Hyper { /* private fields */ }
Expand description
Implements transport for PubNub using the hyper
crate to communicate with
the PubNub REST API.
Implementations
sourceimpl Hyper
impl Hyper
sourcepub fn http_client(&self) -> &Client<HttpsConnector<HttpConnector>>
pub fn http_client(&self) -> &Client<HttpsConnector<HttpConnector>>
An HTTP client to use.
sourcepub fn subscribe_key(&self) -> &String
pub fn subscribe_key(&self) -> &String
Subscribe key to use in requests.
sourcepub fn publish_key(&self) -> &String
pub fn publish_key(&self) -> &String
Publish key to use in requests.
sourcepub fn secret_key(&self) -> &Option<String>
pub fn secret_key(&self) -> &Option<String>
Secret key matching the subscribe key.
Trait Implementations
sourceimpl Service<DeleteHistory> for Hyper
impl Service<DeleteHistory> for Hyper
sourceimpl Service<GetHistory> for Hyper
impl Service<GetHistory> for Hyper
sourceimpl Service<GlobalHereNow<Full>> for Hyper
impl Service<GlobalHereNow<Full>> for Hyper
type Response = GlobalInfo<Full>
type Response = GlobalInfo<Full>
Response given by the service.
sourceimpl Service<GlobalHereNow<OccupancyAndUUIDs>> for Hyper
impl Service<GlobalHereNow<OccupancyAndUUIDs>> for Hyper
type Response = GlobalInfo<OccupancyAndUUIDs>
type Response = GlobalInfo<OccupancyAndUUIDs>
Response given by the service.
sourceimpl Service<GlobalHereNow<OccupancyOnly>> for Hyper
impl Service<GlobalHereNow<OccupancyOnly>> for Hyper
type Response = GlobalInfo<OccupancyOnly>
type Response = GlobalInfo<OccupancyOnly>
Response given by the service.
sourceimpl Service<HereNow<Full>> for Hyper
impl Service<HereNow<Full>> for Hyper
type Response = <Full as RespondWith>::Response
type Response = <Full as RespondWith>::Response
Response given by the service.
sourceimpl Service<HereNow<OccupancyAndUUIDs>> for Hyper
impl Service<HereNow<OccupancyAndUUIDs>> for Hyper
type Response = <OccupancyAndUUIDs as RespondWith>::Response
type Response = <OccupancyAndUUIDs as RespondWith>::Response
Response given by the service.
sourceimpl Service<HereNow<OccupancyOnly>> for Hyper
impl Service<HereNow<OccupancyOnly>> for Hyper
type Response = <OccupancyOnly as RespondWith>::Response
type Response = <OccupancyOnly as RespondWith>::Response
Response given by the service.
sourceimpl Service<MessageCountsWithChannelTimetokens> for Hyper
impl Service<MessageCountsWithChannelTimetokens> for Hyper
type Response = HashMap<Name, usize, RandomState>
type Response = HashMap<Name, usize, RandomState>
Response given by the service.
sourceimpl Service<MessageCountsWithTimetoken> for Hyper
impl Service<MessageCountsWithTimetoken> for Hyper
type Response = HashMap<Name, usize, RandomState>
type Response = HashMap<Name, usize, RandomState>
Response given by the service.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more