pub struct IPQuery<T: IPQueryStore> { /* private fields */ }
Expand description
The IPQuery struct that implements actix-web’s middleware.
Implementations§
Source§impl<T: IPQueryStore + 'static> IPQuery<T>
impl<T: IPQueryStore + 'static> IPQuery<T>
Trait Implementations§
Source§impl<S, B, T> Transform<S, ServiceRequest> for IPQuery<T>where
T: IPQueryStore + 'static + Clone,
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error>,
S::Future: 'static,
B: 'static,
impl<S, B, T> Transform<S, ServiceRequest> for IPQuery<T>where
T: IPQueryStore + 'static + Clone,
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error>,
S::Future: 'static,
B: 'static,
Source§type Response = ServiceResponse<B>
type Response = ServiceResponse<B>
Responses produced by the service.
Source§type Transform = IPQueryMiddleware<S, T>
type Transform = IPQueryMiddleware<S, T>
The
TransformService
value created by this factorySource§type Future = Ready<Result<<IPQuery<T> as Transform<S, ServiceRequest>>::Transform, <IPQuery<T> as Transform<S, ServiceRequest>>::InitError>>
type Future = Ready<Result<<IPQuery<T> as Transform<S, ServiceRequest>>::Transform, <IPQuery<T> as Transform<S, ServiceRequest>>::InitError>>
The future response value.
Source§fn new_transform(&self, service: S) -> Self::Future
fn new_transform(&self, service: S) -> Self::Future
Creates and returns a new Transform component, asynchronously
Auto Trait Implementations§
impl<T> Freeze for IPQuery<T>where
T: Freeze,
impl<T> RefUnwindSafe for IPQuery<T>where
T: RefUnwindSafe,
impl<T> Send for IPQuery<T>
impl<T> Sync for IPQuery<T>
impl<T> Unpin for IPQuery<T>where
T: Unpin,
impl<T> UnwindSafe for IPQuery<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more