[−][src]Struct pubnub_hyper::transport::hyper::Hyper
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.
fn call<'life0, 'async_trait>(
&'life0 self,
request: GetState
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
request: GetState
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl Service<GlobalHereNow<Full>> for Hyper
[src]
type Response = GlobalHereNow<Full>
Response given by the service.
type Error = Error
Error produced by the service.
fn call<'life0, 'async_trait>(
&'life0 self,
_request: GlobalHereNow<Full>
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_request: GlobalHereNow<Full>
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl Service<GlobalHereNow<OccupancyAndUUIDs>> for Hyper
[src]
type Response = GlobalHereNow<OccupancyAndUUIDs>
Response given by the service.
type Error = Error
Error produced by the service.
fn call<'life0, 'async_trait>(
&'life0 self,
_request: GlobalHereNow<OccupancyAndUUIDs>
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_request: GlobalHereNow<OccupancyAndUUIDs>
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl Service<GlobalHereNow<OccupancyOnly>> for Hyper
[src]
type Response = GlobalHereNow<OccupancyOnly>
Response given by the service.
type Error = Error
Error produced by the service.
fn call<'life0, 'async_trait>(
&'life0 self,
_request: GlobalHereNow<OccupancyOnly>
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_request: GlobalHereNow<OccupancyOnly>
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl Service<HereNow<Full>> for Hyper
[src]
type Response = HereNow<Full>
Response given by the service.
type Error = Error
Error produced by the service.
fn call<'life0, 'async_trait>(
&'life0 self,
request: HereNow<Full>
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
request: HereNow<Full>
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl Service<HereNow<OccupancyAndUUIDs>> for Hyper
[src]
type Response = HereNow<OccupancyAndUUIDs>
Response given by the service.
type Error = Error
Error produced by the service.
fn call<'life0, 'async_trait>(
&'life0 self,
request: HereNow<OccupancyAndUUIDs>
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
request: HereNow<OccupancyAndUUIDs>
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl Service<HereNow<OccupancyOnly>> for Hyper
[src]
type Response = HereNow<OccupancyOnly>
Response given by the service.
type Error = Error
Error produced by the service.
fn call<'life0, 'async_trait>(
&'life0 self,
request: HereNow<OccupancyOnly>
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
request: HereNow<OccupancyOnly>
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl Service<Publish> for Hyper
[src]
type Response = Publish
Response given by the service.
type Error = Error
Error produced by the service.
fn call<'life0, 'async_trait>(
&'life0 self,
request: Publish
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
request: Publish
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl Service<SetState> for Hyper
[src]
type Response = SetState
Response given by the service.
type Error = Error
Error produced by the service.
fn call<'life0, 'async_trait>(
&'life0 self,
request: SetState
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
request: SetState
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl Service<Subscribe> for Hyper
[src]
type Response = Subscribe
Response given by the service.
type Error = Error
Error produced by the service.
fn call<'life0, 'async_trait>(
&'life0 self,
request: Subscribe
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
request: Subscribe
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl Service<WhereNow> for Hyper
[src]
type Response = WhereNow
Response given by the service.
type Error = Error
Error produced by the service.
fn call<'life0, 'async_trait>(
&'life0 self,
request: WhereNow
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
request: WhereNow
) -> Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl Transport for Hyper
[src]
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]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any + ?Sized,
T: Any + ?Sized,
fn type_id_compat(&self) -> TypeId
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,