Struct cashweb::keyserver_client::KeyserverClient [−][src]
KeyserverClient
allows queries to specific keyservers.
Implementations
impl<S> KeyserverClient<S>
[src]
pub fn from_service(service: S) -> KeyserverClient<S>
[src]
Create a new client from a Service
.
impl KeyserverClient<Client<HttpConnector<GaiResolver>, Body>>
[src]
pub fn new() -> KeyserverClient<Client<HttpConnector<GaiResolver>, Body>>
[src]
Create a new HTTP client.
impl KeyserverClient<Client<HttpsConnector<HttpConnector<GaiResolver>>, Body>>
[src]
pub fn new_tls(
) -> KeyserverClient<Client<HttpsConnector<HttpConnector<GaiResolver>>, Body>>
[src]
) -> KeyserverClient<Client<HttpsConnector<HttpConnector<GaiResolver>>, Body>>
Create new HTTPS client.
impl<S> KeyserverClient<S> where
KeyserverClient<S>: Service<(Uri, GetPeers)>,
KeyserverClient<S>: Sync,
KeyserverClient<S>: Clone,
KeyserverClient<S>: Send,
KeyserverClient<S>: 'static,
<KeyserverClient<S> as Service<(Uri, GetPeers)>>::Error: Display,
<KeyserverClient<S> as Service<(Uri, GetPeers)>>::Error: Error,
<KeyserverClient<S> as Service<(Uri, GetPeers)>>::Future: Send,
<KeyserverClient<S> as Service<(Uri, GetPeers)>>::Future: Sync,
<KeyserverClient<S> as Service<(Uri, GetPeers)>>::Future: 'static,
<KeyserverClient<S> as Service<(Uri, GetPeers)>>::Response == Peers,
[src]
KeyserverClient<S>: Service<(Uri, GetPeers)>,
KeyserverClient<S>: Sync,
KeyserverClient<S>: Clone,
KeyserverClient<S>: Send,
KeyserverClient<S>: 'static,
<KeyserverClient<S> as Service<(Uri, GetPeers)>>::Error: Display,
<KeyserverClient<S> as Service<(Uri, GetPeers)>>::Error: Error,
<KeyserverClient<S> as Service<(Uri, GetPeers)>>::Future: Send,
<KeyserverClient<S> as Service<(Uri, GetPeers)>>::Future: Sync,
<KeyserverClient<S> as Service<(Uri, GetPeers)>>::Future: 'static,
<KeyserverClient<S> as Service<(Uri, GetPeers)>>::Response == Peers,
pub async fn get_peers(
&'_ self,
keyserver_url: &'_ str
) -> Result<Peers, KeyserverError<<KeyserverClient<S> as Service<(Uri, GetPeers)>>::Error>>
[src]
&'_ self,
keyserver_url: &'_ str
) -> Result<Peers, KeyserverError<<KeyserverClient<S> as Service<(Uri, GetPeers)>>::Error>>
Get Peers
from a keyserver.
impl<S> KeyserverClient<S> where
KeyserverClient<S>: Service<(Uri, GetMetadata)>,
KeyserverClient<S>: Sync,
KeyserverClient<S>: Clone,
KeyserverClient<S>: Send,
KeyserverClient<S>: 'static,
<KeyserverClient<S> as Service<(Uri, GetMetadata)>>::Error: Display,
<KeyserverClient<S> as Service<(Uri, GetMetadata)>>::Error: Error,
<KeyserverClient<S> as Service<(Uri, GetMetadata)>>::Future: Send,
<KeyserverClient<S> as Service<(Uri, GetMetadata)>>::Future: Sync,
<KeyserverClient<S> as Service<(Uri, GetMetadata)>>::Future: 'static,
<KeyserverClient<S> as Service<(Uri, GetMetadata)>>::Response == MetadataPackage,
[src]
KeyserverClient<S>: Service<(Uri, GetMetadata)>,
KeyserverClient<S>: Sync,
KeyserverClient<S>: Clone,
KeyserverClient<S>: Send,
KeyserverClient<S>: 'static,
<KeyserverClient<S> as Service<(Uri, GetMetadata)>>::Error: Display,
<KeyserverClient<S> as Service<(Uri, GetMetadata)>>::Error: Error,
<KeyserverClient<S> as Service<(Uri, GetMetadata)>>::Future: Send,
<KeyserverClient<S> as Service<(Uri, GetMetadata)>>::Future: Sync,
<KeyserverClient<S> as Service<(Uri, GetMetadata)>>::Future: 'static,
<KeyserverClient<S> as Service<(Uri, GetMetadata)>>::Response == MetadataPackage,
pub async fn get_metadata(
&'_ self,
keyserver_url: &'_ str,
address: &'_ str
) -> Result<MetadataPackage, KeyserverError<<KeyserverClient<S> as Service<(Uri, GetMetadata)>>::Error>>
[src]
&'_ self,
keyserver_url: &'_ str,
address: &'_ str
) -> Result<MetadataPackage, KeyserverError<<KeyserverClient<S> as Service<(Uri, GetMetadata)>>::Error>>
Get AddressMetadata
from a server. The result is wrapped in MetadataPackage
.
impl<S> KeyserverClient<S> where
KeyserverClient<S>: Service<(Uri, PutMetadata)>,
KeyserverClient<S>: Sync,
KeyserverClient<S>: Clone,
KeyserverClient<S>: Send,
KeyserverClient<S>: 'static,
<KeyserverClient<S> as Service<(Uri, PutMetadata)>>::Error: Display,
<KeyserverClient<S> as Service<(Uri, PutMetadata)>>::Error: Error,
<KeyserverClient<S> as Service<(Uri, PutMetadata)>>::Future: Send,
<KeyserverClient<S> as Service<(Uri, PutMetadata)>>::Future: Sync,
<KeyserverClient<S> as Service<(Uri, PutMetadata)>>::Future: 'static,
<KeyserverClient<S> as Service<(Uri, PutMetadata)>>::Response == (),
[src]
KeyserverClient<S>: Service<(Uri, PutMetadata)>,
KeyserverClient<S>: Sync,
KeyserverClient<S>: Clone,
KeyserverClient<S>: Send,
KeyserverClient<S>: 'static,
<KeyserverClient<S> as Service<(Uri, PutMetadata)>>::Error: Display,
<KeyserverClient<S> as Service<(Uri, PutMetadata)>>::Error: Error,
<KeyserverClient<S> as Service<(Uri, PutMetadata)>>::Future: Send,
<KeyserverClient<S> as Service<(Uri, PutMetadata)>>::Future: Sync,
<KeyserverClient<S> as Service<(Uri, PutMetadata)>>::Future: 'static,
<KeyserverClient<S> as Service<(Uri, PutMetadata)>>::Response == (),
pub async fn put_metadata(
&'_ self,
keyserver_url: &'_ str,
address: &'_ str,
auth_wrapper: AuthWrapper,
token: String
) -> Result<(), KeyserverError<<KeyserverClient<S> as Service<(Uri, PutMetadata)>>::Error>>
[src]
&'_ self,
keyserver_url: &'_ str,
address: &'_ str,
auth_wrapper: AuthWrapper,
token: String
) -> Result<(), KeyserverError<<KeyserverClient<S> as Service<(Uri, PutMetadata)>>::Error>>
Put AuthWrapper
to a keyserver.
impl<S> KeyserverClient<S> where
KeyserverClient<S>: Service<(Uri, PutRawAuthWrapper)>,
KeyserverClient<S>: Sync,
KeyserverClient<S>: Clone,
KeyserverClient<S>: Send,
KeyserverClient<S>: 'static,
<KeyserverClient<S> as Service<(Uri, PutRawAuthWrapper)>>::Error: Error,
<KeyserverClient<S> as Service<(Uri, PutRawAuthWrapper)>>::Future: Send,
<KeyserverClient<S> as Service<(Uri, PutRawAuthWrapper)>>::Future: Sync,
<KeyserverClient<S> as Service<(Uri, PutRawAuthWrapper)>>::Future: 'static,
<KeyserverClient<S> as Service<(Uri, PutRawAuthWrapper)>>::Response == (),
[src]
KeyserverClient<S>: Service<(Uri, PutRawAuthWrapper)>,
KeyserverClient<S>: Sync,
KeyserverClient<S>: Clone,
KeyserverClient<S>: Send,
KeyserverClient<S>: 'static,
<KeyserverClient<S> as Service<(Uri, PutRawAuthWrapper)>>::Error: Error,
<KeyserverClient<S> as Service<(Uri, PutRawAuthWrapper)>>::Future: Send,
<KeyserverClient<S> as Service<(Uri, PutRawAuthWrapper)>>::Future: Sync,
<KeyserverClient<S> as Service<(Uri, PutRawAuthWrapper)>>::Future: 'static,
<KeyserverClient<S> as Service<(Uri, PutRawAuthWrapper)>>::Response == (),
pub async fn put_raw_metadata(
&'_ self,
keyserver_url: &'_ str,
address: &'_ str,
raw_auth_wrapper: Vec<u8, Global>,
token: String
) -> Result<(), KeyserverError<<KeyserverClient<S> as Service<(Uri, PutRawAuthWrapper)>>::Error>>
[src]
&'_ self,
keyserver_url: &'_ str,
address: &'_ str,
raw_auth_wrapper: Vec<u8, Global>,
token: String
) -> Result<(), KeyserverError<<KeyserverClient<S> as Service<(Uri, PutRawAuthWrapper)>>::Error>>
Put raw AuthWrapper
to a keyserver.
Trait Implementations
impl<S> Clone for KeyserverClient<S> where
S: Clone,
[src]
S: Clone,
pub fn clone(&self) -> KeyserverClient<S>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S> Debug for KeyserverClient<S> where
S: Debug,
[src]
S: Debug,
impl Default for KeyserverClient<Client<HttpConnector<GaiResolver>, Body>>
[src]
pub fn default() -> KeyserverClient<Client<HttpConnector<GaiResolver>, Body>>
[src]
impl<S> Service<(Uri, GetMetadata)> for KeyserverClient<S> where
S: Service<Request<Body>, Response = Response<Body>> + Send + Clone + 'static,
<S as Service<Request<Body>>>::Future: Send,
<S as Service<Request<Body>>>::Error: Debug,
<S as Service<Request<Body>>>::Error: Display,
[src]
S: Service<Request<Body>, Response = Response<Body>> + Send + Clone + 'static,
<S as Service<Request<Body>>>::Future: Send,
<S as Service<Request<Body>>>::Error: Debug,
<S as Service<Request<Body>>>::Error: Display,
type Response = MetadataPackage
Responses given by the service.
type Error = GetMetadataError<<S as Service<Request<Body>>>::Error>
Errors produced by the service.
type Future = Pin<Box<dyn Future<Output = Result<<KeyserverClient<S> as Service<(Uri, GetMetadata)>>::Response, <KeyserverClient<S> as Service<(Uri, GetMetadata)>>::Error>> + 'static + Send, Global>>
The future response value.
pub fn poll_ready(
&mut self,
context: &mut Context<'_>
) -> Poll<Result<(), <KeyserverClient<S> as Service<(Uri, GetMetadata)>>::Error>>
[src]
&mut self,
context: &mut Context<'_>
) -> Poll<Result<(), <KeyserverClient<S> as Service<(Uri, GetMetadata)>>::Error>>
pub fn call(
&mut self,
(Uri, GetMetadata)
) -> <KeyserverClient<S> as Service<(Uri, GetMetadata)>>::Future
[src]
&mut self,
(Uri, GetMetadata)
) -> <KeyserverClient<S> as Service<(Uri, GetMetadata)>>::Future
impl<S> Service<(Uri, GetPeers)> for KeyserverClient<S> where
S: Service<Request<Body>, Response = Response<Body>> + Send + Clone + 'static,
<S as Service<Request<Body>>>::Error: Debug,
<S as Service<Request<Body>>>::Error: Display,
<S as Service<Request<Body>>>::Future: Send,
[src]
S: Service<Request<Body>, Response = Response<Body>> + Send + Clone + 'static,
<S as Service<Request<Body>>>::Error: Debug,
<S as Service<Request<Body>>>::Error: Display,
<S as Service<Request<Body>>>::Future: Send,
type Response = Peers
Responses given by the service.
type Error = GetPeersError<<S as Service<Request<Body>>>::Error>
Errors produced by the service.
type Future = Pin<Box<dyn Future<Output = Result<<KeyserverClient<S> as Service<(Uri, GetPeers)>>::Response, <KeyserverClient<S> as Service<(Uri, GetPeers)>>::Error>> + 'static + Send, Global>>
The future response value.
pub fn poll_ready(
&mut self,
context: &mut Context<'_>
) -> Poll<Result<(), <KeyserverClient<S> as Service<(Uri, GetPeers)>>::Error>>
[src]
&mut self,
context: &mut Context<'_>
) -> Poll<Result<(), <KeyserverClient<S> as Service<(Uri, GetPeers)>>::Error>>
pub fn call(
&mut self,
(Uri, GetPeers)
) -> <KeyserverClient<S> as Service<(Uri, GetPeers)>>::Future
[src]
&mut self,
(Uri, GetPeers)
) -> <KeyserverClient<S> as Service<(Uri, GetPeers)>>::Future
impl<S> Service<(Uri, GetRawAuthWrapper)> for KeyserverClient<S> where
S: Service<Request<Body>, Response = Response<Body>> + Send + Clone + 'static,
<S as Service<Request<Body>>>::Future: Send,
<S as Service<Request<Body>>>::Error: Debug,
<S as Service<Request<Body>>>::Error: Display,
[src]
S: Service<Request<Body>, Response = Response<Body>> + Send + Clone + 'static,
<S as Service<Request<Body>>>::Future: Send,
<S as Service<Request<Body>>>::Error: Debug,
<S as Service<Request<Body>>>::Error: Display,
type Response = RawAuthWrapperPackage
Responses given by the service.
type Error = GetRawAuthWrapperError<<S as Service<Request<Body>>>::Error>
Errors produced by the service.
type Future = Pin<Box<dyn Future<Output = Result<<KeyserverClient<S> as Service<(Uri, GetRawAuthWrapper)>>::Response, <KeyserverClient<S> as Service<(Uri, GetRawAuthWrapper)>>::Error>> + 'static + Send, Global>>
The future response value.
pub fn poll_ready(
&mut self,
context: &mut Context<'_>
) -> Poll<Result<(), <KeyserverClient<S> as Service<(Uri, GetRawAuthWrapper)>>::Error>>
[src]
&mut self,
context: &mut Context<'_>
) -> Poll<Result<(), <KeyserverClient<S> as Service<(Uri, GetRawAuthWrapper)>>::Error>>
pub fn call(
&mut self,
(Uri, GetRawAuthWrapper)
) -> <KeyserverClient<S> as Service<(Uri, GetRawAuthWrapper)>>::Future
[src]
&mut self,
(Uri, GetRawAuthWrapper)
) -> <KeyserverClient<S> as Service<(Uri, GetRawAuthWrapper)>>::Future
impl<S> Service<(Uri, PutMetadata)> for KeyserverClient<S> where
S: Service<Request<Body>, Response = Response<Body>> + Send + Clone + 'static,
<S as Service<Request<Body>>>::Error: Debug,
<S as Service<Request<Body>>>::Error: Display,
<S as Service<Request<Body>>>::Future: Send,
[src]
S: Service<Request<Body>, Response = Response<Body>> + Send + Clone + 'static,
<S as Service<Request<Body>>>::Error: Debug,
<S as Service<Request<Body>>>::Error: Display,
<S as Service<Request<Body>>>::Future: Send,
type Response = ()
Responses given by the service.
type Error = PutMetadataError<<S as Service<Request<Body>>>::Error>
Errors produced by the service.
type Future = Pin<Box<dyn Future<Output = Result<<KeyserverClient<S> as Service<(Uri, PutMetadata)>>::Response, <KeyserverClient<S> as Service<(Uri, PutMetadata)>>::Error>> + 'static + Send, Global>>
The future response value.
pub fn poll_ready(
&mut self,
context: &mut Context<'_>
) -> Poll<Result<(), <KeyserverClient<S> as Service<(Uri, PutMetadata)>>::Error>>
[src]
&mut self,
context: &mut Context<'_>
) -> Poll<Result<(), <KeyserverClient<S> as Service<(Uri, PutMetadata)>>::Error>>
pub fn call(
&mut self,
(Uri, PutMetadata)
) -> <KeyserverClient<S> as Service<(Uri, PutMetadata)>>::Future
[src]
&mut self,
(Uri, PutMetadata)
) -> <KeyserverClient<S> as Service<(Uri, PutMetadata)>>::Future
impl<S> Service<(Uri, PutRawAuthWrapper)> for KeyserverClient<S> where
S: Service<Request<Body>, Response = Response<Body>> + Send + Clone + 'static,
<S as Service<Request<Body>>>::Error: Debug,
<S as Service<Request<Body>>>::Error: Display,
<S as Service<Request<Body>>>::Future: Send,
[src]
S: Service<Request<Body>, Response = Response<Body>> + Send + Clone + 'static,
<S as Service<Request<Body>>>::Error: Debug,
<S as Service<Request<Body>>>::Error: Display,
<S as Service<Request<Body>>>::Future: Send,
type Response = ()
Responses given by the service.
type Error = PutMetadataError<<S as Service<Request<Body>>>::Error>
Errors produced by the service.
type Future = Pin<Box<dyn Future<Output = Result<<KeyserverClient<S> as Service<(Uri, PutRawAuthWrapper)>>::Response, <KeyserverClient<S> as Service<(Uri, PutRawAuthWrapper)>>::Error>> + 'static + Send, Global>>
The future response value.
pub fn poll_ready(
&mut self,
context: &mut Context<'_>
) -> Poll<Result<(), <KeyserverClient<S> as Service<(Uri, PutRawAuthWrapper)>>::Error>>
[src]
&mut self,
context: &mut Context<'_>
) -> Poll<Result<(), <KeyserverClient<S> as Service<(Uri, PutRawAuthWrapper)>>::Error>>
pub fn call(
&mut self,
(Uri, PutRawAuthWrapper)
) -> <KeyserverClient<S> as Service<(Uri, PutRawAuthWrapper)>>::Future
[src]
&mut self,
(Uri, PutRawAuthWrapper)
) -> <KeyserverClient<S> as Service<(Uri, PutRawAuthWrapper)>>::Future
impl<S, T> Service<SampleRequest<T>> for KeyserverClient<S> where
T: Send + 'static + Clone,
S: Send + Clone + 'static,
KeyserverClient<S>: Service<(Uri, T)>,
<KeyserverClient<S> as Service<(Uri, T)>>::Response: Send,
<KeyserverClient<S> as Service<(Uri, T)>>::Response: Debug,
<KeyserverClient<S> as Service<(Uri, T)>>::Error: Debug,
<KeyserverClient<S> as Service<(Uri, T)>>::Error: Display,
<KeyserverClient<S> as Service<(Uri, T)>>::Error: Send,
<KeyserverClient<S> as Service<(Uri, T)>>::Future: Send,
[src]
T: Send + 'static + Clone,
S: Send + Clone + 'static,
KeyserverClient<S>: Service<(Uri, T)>,
<KeyserverClient<S> as Service<(Uri, T)>>::Response: Send,
<KeyserverClient<S> as Service<(Uri, T)>>::Response: Debug,
<KeyserverClient<S> as Service<(Uri, T)>>::Error: Debug,
<KeyserverClient<S> as Service<(Uri, T)>>::Error: Display,
<KeyserverClient<S> as Service<(Uri, T)>>::Error: Send,
<KeyserverClient<S> as Service<(Uri, T)>>::Future: Send,
type Response = Vec<(Uri, Result<<KeyserverClient<S> as Service<(Uri, T)>>::Response, <KeyserverClient<S> as Service<(Uri, T)>>::Error>), Global>
Responses given by the service.
type Error = SampleError<<KeyserverClient<S> as Service<(Uri, T)>>::Error>
Errors produced by the service.
type Future = Pin<Box<dyn Future<Output = Result<<KeyserverClient<S> as Service<SampleRequest<T>>>::Response, <KeyserverClient<S> as Service<SampleRequest<T>>>::Error>> + 'static + Send, Global>>
The future response value.
pub fn poll_ready(
&mut self,
context: &mut Context<'_>
) -> Poll<Result<(), <KeyserverClient<S> as Service<SampleRequest<T>>>::Error>>
[src]
&mut self,
context: &mut Context<'_>
) -> Poll<Result<(), <KeyserverClient<S> as Service<SampleRequest<T>>>::Error>>
pub fn call(
&mut self,
SampleRequest<T>
) -> <KeyserverClient<S> as Service<SampleRequest<T>>>::Future
[src]
&mut self,
SampleRequest<T>
) -> <KeyserverClient<S> as Service<SampleRequest<T>>>::Future
Auto Trait Implementations
impl<S> RefUnwindSafe for KeyserverClient<S> where
S: RefUnwindSafe,
[src]
S: RefUnwindSafe,
impl<S> Send for KeyserverClient<S> where
S: Send,
[src]
S: Send,
impl<S> Sync for KeyserverClient<S> where
S: Sync,
[src]
S: Sync,
impl<S> Unpin for KeyserverClient<S> where
S: Unpin,
[src]
S: Unpin,
impl<S> UnwindSafe for KeyserverClient<S> where
S: UnwindSafe,
[src]
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, Request> ServiceExt<Request> for T where
T: Service<Request> + ?Sized,
[src]
T: Service<Request> + ?Sized,
pub fn ready(&mut self) -> Ready<'_, Self, Request>
[src]
pub fn ready_and(&mut self) -> ReadyAnd<'_, Self, Request>
[src]
pub fn ready_oneshot(self) -> ReadyOneshot<Self, Request>
[src]
pub fn oneshot(self, req: Request) -> Oneshot<Self, Request>
[src]
pub fn call_all<S>(self, reqs: S) -> CallAll<Self, S> where
S: Stream<Item = Request>,
Self::Error: Into<Box<dyn Error + 'static + Send + Sync, Global>>,
[src]
S: Stream<Item = Request>,
Self::Error: Into<Box<dyn Error + 'static + Send + Sync, Global>>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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.
pub 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>,