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: SigningKeyKindallowed_mismatch: Option<Duration>region: Stringservice: Stringget_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]

pub fn new<S1, S2>(
    region: S1,
    service: S2,
    get_signing_key: G,
    implementation: S
) -> Self where
    S1: Into<String>,
    S2: Into<String>, 
[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, 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> 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.

Auto Trait Implementations

impl<G, S> !RefUnwindSafe for AwsSigV4VerifierService<G, S>

impl<G, S> Send for AwsSigV4VerifierService<G, S>

impl<G, S> Sync for AwsSigV4VerifierService<G, S>

impl<G, S> Unpin for AwsSigV4VerifierService<G, S>

impl<G, S> !UnwindSafe for AwsSigV4VerifierService<G, S>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Request> ServiceExt<Request> for T where
    T: Service<Request> + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.