[−][src]Struct cashweb_keyserver_client::KeyserverClient
KeyserverClient
allows queries to specific keyservers.
Implementations
impl<S> KeyserverClient<S>
[src]
pub fn from_service(service: S) -> Self
[src]
Create a new client from a Service
.
impl KeyserverClient<HyperClient<HttpConnector>>
[src]
impl KeyserverClient<HyperClient<HttpsConnector<HttpConnector>>>
[src]
impl<S> KeyserverClient<S> where
Self: Service<(Uri, GetPeers), Response = Peers>,
Self: Sync + Clone + Send + 'static,
Self::Error: Display + Error,
Self::Future: Send + Sync + 'static,
[src]
Self: Service<(Uri, GetPeers), Response = Peers>,
Self: Sync + Clone + Send + 'static,
Self::Error: Display + Error,
Self::Future: Send + Sync + 'static,
pub async fn get_peers<'_, '_>(
&'_ self,
keyserver_url: &'_ str
) -> Result<Peers, KeyserverError<Self::Error>>
[src]
&'_ self,
keyserver_url: &'_ str
) -> Result<Peers, KeyserverError<Self::Error>>
Get Peers
from a keyserver.
impl<S> KeyserverClient<S> where
Self: Service<(Uri, GetMetadata), Response = MetadataPackage>,
Self: Sync + Clone + Send + 'static,
Self::Error: Display + Error,
Self::Future: Send + Sync + 'static,
[src]
Self: Service<(Uri, GetMetadata), Response = MetadataPackage>,
Self: Sync + Clone + Send + 'static,
Self::Error: Display + Error,
Self::Future: Send + Sync + 'static,
pub async fn get_metadata<'_, '_, '_>(
&'_ self,
keyserver_url: &'_ str,
address: &'_ str
) -> Result<MetadataPackage, KeyserverError<Self::Error>>
[src]
&'_ self,
keyserver_url: &'_ str,
address: &'_ str
) -> Result<MetadataPackage, KeyserverError<Self::Error>>
Get AddressMetadata
from a server. The result is wrapped in MetadataPackage
.
impl<S> KeyserverClient<S> where
Self: Service<(Uri, PutMetadata), Response = ()>,
Self: Sync + Clone + Send + 'static,
Self::Error: Display + Error,
Self::Future: Send + Sync + 'static,
[src]
Self: Service<(Uri, PutMetadata), Response = ()>,
Self: Sync + Clone + Send + 'static,
Self::Error: Display + Error,
Self::Future: Send + Sync + 'static,
pub async fn put_metadata<'_, '_, '_>(
&'_ self,
keyserver_url: &'_ str,
address: &'_ str,
auth_wrapper: AuthWrapper,
token: String
) -> Result<(), KeyserverError<Self::Error>>
[src]
&'_ self,
keyserver_url: &'_ str,
address: &'_ str,
auth_wrapper: AuthWrapper,
token: String
) -> Result<(), KeyserverError<Self::Error>>
Put AuthWrapper
to a keyserver.
impl<S> KeyserverClient<S> where
Self: Service<(Uri, PutRawAuthWrapper), Response = ()>,
Self: Sync + Clone + Send + 'static,
Self::Error: Error,
Self::Future: Send + Sync + 'static,
[src]
Self: Service<(Uri, PutRawAuthWrapper), Response = ()>,
Self: Sync + Clone + Send + 'static,
Self::Error: Error,
Self::Future: Send + Sync + 'static,
pub async fn put_raw_metadata<'_, '_, '_>(
&'_ self,
keyserver_url: &'_ str,
address: &'_ str,
raw_auth_wrapper: Vec<u8>,
token: String
) -> Result<(), KeyserverError<Self::Error>>
[src]
&'_ self,
keyserver_url: &'_ str,
address: &'_ str,
raw_auth_wrapper: Vec<u8>,
token: String
) -> Result<(), KeyserverError<Self::Error>>
Put raw AuthWrapper
to a keyserver.
Trait Implementations
impl<S: Clone> Clone for KeyserverClient<S>
[src]
fn clone(&self) -> KeyserverClient<S>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S: Debug> Debug for KeyserverClient<S>
[src]
impl Default for KeyserverClient<HyperClient<HttpConnector>>
[src]
impl<S> Service<(Uri, GetMetadata)> for KeyserverClient<S> where
S: Service<Request<Body>, Response = Response<Body>>,
S: Send + Clone + 'static,
S::Future: Send,
S::Error: Debug + Display,
[src]
S: Service<Request<Body>, Response = Response<Body>>,
S: Send + Clone + 'static,
S::Future: Send,
S::Error: Debug + Display,
type Response = MetadataPackage
Responses given by the service.
type Error = GetMetadataError<S::Error>
Errors produced by the service.
type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'static>>
The future response value.
fn poll_ready(&mut self, context: &mut Context) -> Poll<Result<(), Self::Error>>
[src]
fn call(&mut self, (uri, _): (Uri, GetMetadata)) -> Self::Future
[src]
impl<S> Service<(Uri, GetPeers)> for KeyserverClient<S> where
S: Service<Request<Body>, Response = Response<Body>>,
S: Send + Clone + 'static,
S::Error: Debug,
<S as Service<Request<Body>>>::Error: Display,
<S as Service<Request<Body>>>::Future: Send,
[src]
S: Service<Request<Body>, Response = Response<Body>>,
S: Send + Clone + 'static,
S::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::Error>
Errors produced by the service.
type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'static>>
The future response value.
fn poll_ready(&mut self, context: &mut Context) -> Poll<Result<(), Self::Error>>
[src]
fn call(&mut self, (uri, _): (Uri, GetPeers)) -> Self::Future
[src]
impl<S> Service<(Uri, GetRawAuthWrapper)> for KeyserverClient<S> where
S: Service<Request<Body>, Response = Response<Body>>,
S: Send + Clone + 'static,
S::Future: Send,
S::Error: Debug + Display,
[src]
S: Service<Request<Body>, Response = Response<Body>>,
S: Send + Clone + 'static,
S::Future: Send,
S::Error: Debug + Display,
type Response = RawAuthWrapperPackage
Responses given by the service.
type Error = GetRawAuthWrapperError<S::Error>
Errors produced by the service.
type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'static>>
The future response value.
fn poll_ready(&mut self, context: &mut Context) -> Poll<Result<(), Self::Error>>
[src]
fn call(&mut self, (uri, _): (Uri, GetRawAuthWrapper)) -> Self::Future
[src]
impl<S> Service<(Uri, PutMetadata)> for KeyserverClient<S> where
S: Service<Request<Body>, Response = Response<Body>>,
S: Send + Clone + 'static,
S::Error: Debug + Display,
S::Future: Send,
[src]
S: Service<Request<Body>, Response = Response<Body>>,
S: Send + Clone + 'static,
S::Error: Debug + Display,
S::Future: Send,
type Response = ()
Responses given by the service.
type Error = PutMetadataError<S::Error>
Errors produced by the service.
type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'static>>
The future response value.
fn poll_ready(&mut self, context: &mut Context) -> Poll<Result<(), Self::Error>>
[src]
fn call(&mut self, (uri, request): (Uri, PutMetadata)) -> Self::Future
[src]
impl<S> Service<(Uri, PutRawAuthWrapper)> for KeyserverClient<S> where
S: Service<Request<Body>, Response = Response<Body>>,
S: Send + Clone + 'static,
S::Error: Debug + Display,
S::Future: Send,
[src]
S: Service<Request<Body>, Response = Response<Body>>,
S: Send + Clone + 'static,
S::Error: Debug + Display,
S::Future: Send,
type Response = ()
Responses given by the service.
type Error = PutMetadataError<S::Error>
Errors produced by the service.
type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'static>>
The future response value.
fn poll_ready(&mut self, context: &mut Context) -> Poll<Result<(), Self::Error>>
[src]
fn call(&mut self, (uri, request): (Uri, PutRawAuthWrapper)) -> Self::Future
[src]
impl<S, T> Service<SampleRequest<T>> for KeyserverClient<S> where
T: Send + 'static + Clone + Sized,
S: Send + Clone + 'static,
Self: Service<(Uri, T)>,
Self::Response: Send + Debug,
Self::Error: Debug + Display + Send,
Self::Future: Send,
[src]
T: Send + 'static + Clone + Sized,
S: Send + Clone + 'static,
Self: Service<(Uri, T)>,
Self::Response: Send + Debug,
Self::Error: Debug + Display + Send,
Self::Future: Send,
type Response = Vec<(Uri, Result<Self::Response, Self::Error>)>
Responses given by the service.
type Error = SampleError<Self::Error>
Errors produced by the service.
type Future = Pin<Box<dyn Future<Output = Result<Self::Response, Self::Error>> + Send + 'static>>
The future response value.
fn poll_ready(&mut self, context: &mut Context) -> Poll<Result<(), Self::Error>>
[src]
fn call(
&mut self,
SampleRequest { uris: uris, request: request }: SampleRequest<T>
) -> Self::Future
[src]
&mut self,
SampleRequest { uris: uris, request: request }: SampleRequest<T>
) -> Self::Future
Auto Trait Implementations
impl<S> RefUnwindSafe for KeyserverClient<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for KeyserverClient<S> where
S: Send,
S: Send,
impl<S> Sync for KeyserverClient<S> where
S: Sync,
S: Sync,
impl<S> Unpin for KeyserverClient<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for KeyserverClient<S> where
S: UnwindSafe,
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,
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, Request> ServiceExt<Request> for T where
T: Service<Request> + ?Sized,
[src]
T: Service<Request> + ?Sized,
fn ready(&mut self) -> Ready<Self, Request>
[src]
fn ready_and(&mut self) -> ReadyAnd<Self, Request>
[src]
fn ready_oneshot(self) -> ReadyOneshot<Self, Request>
[src]
fn oneshot(self, req: Request) -> Oneshot<Self, Request>
[src]
fn call_all<S>(self, reqs: S) -> CallAll<Self, S> where
S: Stream<Item = Request>,
Self::Error: Into<Box<dyn Error + 'static + Sync + Send>>,
[src]
S: Stream<Item = Request>,
Self::Error: Into<Box<dyn Error + 'static + Sync + Send>>,
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>,