Struct actix_web_lab::extract::RequestSignature
source · [−]pub struct RequestSignature<T, S: RequestSignatureScheme> { /* private fields */ }
Expand description
Wraps an extractor and calculates a request signature hash alongside.
Warning: Currently, this will always take the body meaning that if a body extractor is used, this needs to wrap it or else it will not work.
Implementations
sourceimpl<T, S: RequestSignatureScheme> RequestSignature<T, S>
impl<T, S: RequestSignatureScheme> RequestSignature<T, S>
sourcepub fn into_parts(self) -> (T, S::Signature)
pub fn into_parts(self) -> (T, S::Signature)
Returns tuple containing body type, and owned hash.
Trait Implementations
sourceimpl<T: Clone, S: Clone + RequestSignatureScheme> Clone for RequestSignature<T, S>where
S::Signature: Clone,
impl<T: Clone, S: Clone + RequestSignatureScheme> Clone for RequestSignature<T, S>where
S::Signature: Clone,
sourcefn clone(&self) -> RequestSignature<T, S>
fn clone(&self) -> RequestSignature<T, S>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T, S> FromRequest for RequestSignature<T, S>where
T: FromRequest + 'static,
T::Error: Debug + Display,
S: RequestSignatureScheme + 'static,
S::Error: Debug + Display,
impl<T, S> FromRequest for RequestSignature<T, S>where
T: FromRequest + 'static,
T::Error: Debug + Display,
S: RequestSignatureScheme + 'static,
S::Error: Debug + Display,
type Error = RequestSignatureError<T, S>
type Error = RequestSignatureError<T, S>
The associated error which can be returned.
type Future = Pin<Box<dyn Future<Output = Result<RequestSignature<T, S>, <RequestSignature<T, S> as FromRequest>::Error>> + 'static, Global>>
type Future = Pin<Box<dyn Future<Output = Result<RequestSignature<T, S>, <RequestSignature<T, S> as FromRequest>::Error>> + 'static, Global>>
Future that resolves to a Self
. Read more
sourcefn from_request(req: &HttpRequest, payload: &mut Payload) -> Self::Future
fn from_request(req: &HttpRequest, payload: &mut Payload) -> Self::Future
Create a Self
from request parts asynchronously.
sourcefn extract(req: &HttpRequest) -> Self::Future
fn extract(req: &HttpRequest) -> Self::Future
Create a Self
from request head asynchronously. Read more
Auto Trait Implementations
impl<T, S> RefUnwindSafe for RequestSignature<T, S>where
T: RefUnwindSafe,
<S as RequestSignatureScheme>::Signature: RefUnwindSafe,
impl<T, S> Send for RequestSignature<T, S>where
T: Send,
<S as RequestSignatureScheme>::Signature: Send,
impl<T, S> Sync for RequestSignature<T, S>where
T: Sync,
<S as RequestSignatureScheme>::Signature: Sync,
impl<T, S> Unpin for RequestSignature<T, S>where
T: Unpin,
<S as RequestSignatureScheme>::Signature: Unpin,
impl<T, S> UnwindSafe for RequestSignature<T, S>where
T: UnwindSafe,
<S as RequestSignatureScheme>::Signature: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more