pub struct DdosShield { /* private fields */ }Implementations§
Source§impl DdosShield
impl DdosShield
pub fn new() -> Self
pub fn builder() -> DdosShieldBuilder
Trait Implementations§
Source§impl Clone for DdosShield
impl Clone for DdosShield
Source§fn clone(&self) -> DdosShield
fn clone(&self) -> DdosShield
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for DdosShield
impl Default for DdosShield
Source§impl<S, B> Transform<S, ServiceRequest> for DdosShieldwhere
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
S::Future: 'static,
B: 'static,
impl<S, B> Transform<S, ServiceRequest> for DdosShieldwhere
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
S::Future: 'static,
B: 'static,
Source§type Response = ServiceResponse<B>
type Response = ServiceResponse<B>
Responses produced by the service.
Source§type Transform = DdosShieldMiddleware<S>
type Transform = DdosShieldMiddleware<S>
The
TransformService value created by this factorySource§type Future = Ready<Result<<DdosShield as Transform<S, ServiceRequest>>::Transform, <DdosShield as Transform<S, ServiceRequest>>::InitError>>
type Future = Ready<Result<<DdosShield as Transform<S, ServiceRequest>>::Transform, <DdosShield 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 Freeze for DdosShield
impl RefUnwindSafe for DdosShield
impl Send for DdosShield
impl Sync for DdosShield
impl Unpin for DdosShield
impl UnsafeUnpin for DdosShield
impl UnwindSafe for DdosShield
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