Struct hyper_aws_sig_verify::AwsSigV4VerifierService [−][src]
pub struct AwsSigV4VerifierService<G, S> where
G: Service<GetSigningKeyRequest, Response = (PrincipalActor, SigningKey)> + Clone + Send + 'static,
G::Future: Send,
G::Error: Into<BoxError> + Send + Sync,
S: Service<Request<Body>, Response = Response<Body>> + Clone + Send + 'static,
S::Future: Send,
S::Error: Into<BoxError> + Send + Sync, { pub signing_key_kind: SigningKeyKind, pub allowed_mismatch: Option<Duration>, pub region: String, pub service: String, pub get_signing_key: Buffer<G, GetSigningKeyRequest>, pub implementation: Buffer<S, Request<Body>>, }
AWSSigV4VerifierService implements a Hyper service that authenticates a request against AWS SigV4 signing protocol.
Fields
signing_key_kind: SigningKeyKind
allowed_mismatch: Option<Duration>
region: String
service: String
get_signing_key: Buffer<G, GetSigningKeyRequest>
implementation: Buffer<S, Request<Body>>
Implementations
impl<G, S> AwsSigV4VerifierService<G, S> where
G: Service<GetSigningKeyRequest, Response = (PrincipalActor, SigningKey)> + Clone + Send + 'static,
G::Future: Send,
G::Error: Into<BoxError> + Send + Sync,
S: Service<Request<Body>, Response = Response<Body>> + Clone + Send + 'static,
S::Future: Send,
S::Error: Into<BoxError> + Send + Sync,
[src]
impl<G, S> AwsSigV4VerifierService<G, S> where
G: Service<GetSigningKeyRequest, Response = (PrincipalActor, SigningKey)> + Clone + Send + 'static,
G::Future: Send,
G::Error: Into<BoxError> + Send + Sync,
S: Service<Request<Body>, Response = Response<Body>> + Clone + Send + 'static,
S::Future: Send,
S::Error: Into<BoxError> + Send + Sync,
[src]Trait Implementations
impl<G: Clone, S: Clone> Clone for AwsSigV4VerifierService<G, S> where
G: Service<GetSigningKeyRequest, Response = (PrincipalActor, SigningKey)> + Clone + Send + 'static,
G::Future: Send,
G::Error: Into<BoxError> + Send + Sync,
S: Service<Request<Body>, Response = Response<Body>> + Clone + Send + 'static,
S::Future: Send,
S::Error: Into<BoxError> + Send + Sync,
[src]
impl<G: Clone, S: Clone> Clone for AwsSigV4VerifierService<G, S> where
G: Service<GetSigningKeyRequest, Response = (PrincipalActor, SigningKey)> + Clone + Send + 'static,
G::Future: Send,
G::Error: Into<BoxError> + Send + Sync,
S: Service<Request<Body>, Response = Response<Body>> + Clone + Send + 'static,
S::Future: Send,
S::Error: Into<BoxError> + Send + Sync,
[src]fn clone(&self) -> AwsSigV4VerifierService<G, S>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<G, S> Debug for AwsSigV4VerifierService<G, S> where
G: Service<GetSigningKeyRequest, Response = (PrincipalActor, SigningKey)> + Clone + Send + 'static,
G::Future: Send,
G::Error: Into<BoxError> + Send + Sync,
S: Service<Request<Body>, Response = Response<Body>> + Clone + Send + 'static,
S::Future: Send,
S::Error: Into<BoxError> + Send + Sync,
[src]
impl<G, S> Debug for AwsSigV4VerifierService<G, S> where
G: Service<GetSigningKeyRequest, Response = (PrincipalActor, SigningKey)> + Clone + Send + 'static,
G::Future: Send,
G::Error: Into<BoxError> + Send + Sync,
S: Service<Request<Body>, Response = Response<Body>> + Clone + Send + 'static,
S::Future: Send,
S::Error: Into<BoxError> + Send + Sync,
[src]impl<G, S> Display for AwsSigV4VerifierService<G, S> where
G: Service<GetSigningKeyRequest, Response = (PrincipalActor, SigningKey)> + Clone + Send + 'static,
G::Future: Send,
G::Error: Into<BoxError> + Send + Sync,
S: Service<Request<Body>, Response = Response<Body>> + Clone + Send + 'static,
S::Future: Send,
S::Error: Into<BoxError> + Send + Sync,
[src]
impl<G, S> Display for AwsSigV4VerifierService<G, S> where
G: Service<GetSigningKeyRequest, Response = (PrincipalActor, SigningKey)> + Clone + Send + 'static,
G::Future: Send,
G::Error: Into<BoxError> + Send + Sync,
S: Service<Request<Body>, Response = Response<Body>> + Clone + Send + 'static,
S::Future: Send,
S::Error: Into<BoxError> + Send + Sync,
[src]impl<G, S> Service<Request<Body>> for AwsSigV4VerifierService<G, S> where
G: Service<GetSigningKeyRequest, Response = (PrincipalActor, SigningKey)> + Clone + Send + 'static,
G::Future: Send,
G::Error: Into<BoxError> + Send + Sync,
S: Service<Request<Body>, Response = Response<Body>> + Clone + Send + 'static,
S::Future: Send,
S::Error: Into<BoxError> + Send + Sync,
[src]
impl<G, S> Service<Request<Body>> for AwsSigV4VerifierService<G, S> where
G: Service<GetSigningKeyRequest, Response = (PrincipalActor, SigningKey)> + Clone + Send + 'static,
G::Future: Send,
G::Error: Into<BoxError> + Send + Sync,
S: Service<Request<Body>, Response = Response<Body>> + Clone + Send + 'static,
S::Future: Send,
S::Error: Into<BoxError> + Send + Sync,
[src]type Response = S::Response
Responses given by the service.
type Error = BoxError
Errors produced by the service.
type Future = Pin<Box<dyn Future<Output = Result<Response<Body>, BoxError>> + Send>>
The future response value.
fn poll_ready(&mut self, c: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
[src]
fn call(&mut self, req: Request<Body>) -> Self::Future
[src]
Auto Trait Implementations
impl<G, S> !RefUnwindSafe for AwsSigV4VerifierService<G, S>
impl<G, S> !RefUnwindSafe for AwsSigV4VerifierService<G, S>
impl<G, S> Send for AwsSigV4VerifierService<G, S>
impl<G, S> Send for AwsSigV4VerifierService<G, S>
impl<G, S> Sync for AwsSigV4VerifierService<G, S>
impl<G, S> Sync for AwsSigV4VerifierService<G, S>
impl<G, S> Unpin for AwsSigV4VerifierService<G, S>
impl<G, S> Unpin for AwsSigV4VerifierService<G, S>
impl<G, S> !UnwindSafe for AwsSigV4VerifierService<G, S>
impl<G, S> !UnwindSafe for AwsSigV4VerifierService<G, S>
Blanket Implementations
impl<T> Instrument 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, Request> ServiceExt<Request> for T where
T: Service<Request> + ?Sized,
[src]
impl<T, Request> ServiceExt<Request> for T where
T: Service<Request> + ?Sized,
[src]pub fn ready(&mut self) -> Ready<'_, Self, Request>
[src]
pub fn ready_and(&mut self) -> Ready<'_, 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 + Sync + Send, Global>>,
[src]
S: Stream<Item = Request>,
Self::Error: Into<Box<dyn Error + 'static + Sync + Send, Global>>,
pub fn and_then<F>(self, f: F) -> AndThen<Self, F> where
F: Clone,
[src]
F: Clone,
pub fn map_response<F, Response>(self, f: F) -> MapResponse<Self, F> where
F: FnOnce(Self::Response) -> Response + Clone,
[src]
F: FnOnce(Self::Response) -> Response + Clone,
pub fn map_err<F, Error>(self, f: F) -> MapErr<Self, F> where
F: FnOnce(Self::Error) -> Error + Clone,
[src]
F: FnOnce(Self::Error) -> Error + Clone,
pub fn map_result<F, Response, Error>(self, f: F) -> MapResult<Self, F> where
Error: From<Self::Error>,
F: FnOnce(Result<Self::Response, Self::Error>) -> Result<Response, Error> + Clone,
[src]
Error: From<Self::Error>,
F: FnOnce(Result<Self::Response, Self::Error>) -> Result<Response, Error> + Clone,
pub fn map_request<F, NewRequest>(self, f: F) -> MapRequest<Self, F> where
F: FnMut(NewRequest) -> Request + Clone,
[src]
F: FnMut(NewRequest) -> Request + Clone,
pub fn then<F, Response, Error, Fut>(self, f: F) -> Then<Self, F> where
Error: From<Self::Error>,
F: FnOnce(Result<Self::Response, Self::Error>) -> Fut + Clone,
Fut: Future<Output = Result<Response, Error>>,
[src]
Error: From<Self::Error>,
F: FnOnce(Result<Self::Response, Self::Error>) -> Fut + Clone,
Fut: Future<Output = Result<Response, Error>>,
pub fn map_future<F, Fut, Response, Error>(self, f: F) -> MapFuture<Self, F> where
Error: From<Self::Error>,
F: FnMut(Self::Future) -> Fut,
Fut: Future<Output = Result<Response, Error>>,
[src]
Error: From<Self::Error>,
F: FnMut(Self::Future) -> Fut,
Fut: Future<Output = Result<Response, Error>>,