pub struct CommunityAccessGuard;Expand description
CommunityAccessGuard — factory Actix, à câbler GLOBALEMENT (cf. design
ci-dessus). Wrap :
ⓘ
use actix_web::App;
use koprogo_api::infrastructure::web::middleware::CommunityAccessGuard;
App::new().wrap(CommunityAccessGuard::new());Implementations§
Trait Implementations§
Source§impl Clone for CommunityAccessGuard
impl Clone for CommunityAccessGuard
Source§fn clone(&self) -> CommunityAccessGuard
fn clone(&self) -> CommunityAccessGuard
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 CommunityAccessGuard
impl Default for CommunityAccessGuard
Source§fn default() -> CommunityAccessGuard
fn default() -> CommunityAccessGuard
Returns the “default value” for a type. Read more
Source§impl<S, B> Transform<S, ServiceRequest> for CommunityAccessGuardwhere
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
S::Future: 'static,
B: MessageBody + 'static,
impl<S, B> Transform<S, ServiceRequest> for CommunityAccessGuardwhere
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
S::Future: 'static,
B: MessageBody + 'static,
Source§type Transform = CommunityAccessGuardMiddleware<S>
type Transform = CommunityAccessGuardMiddleware<S>
The
TransformService value created by this factorySource§type Future = Ready<Result<<CommunityAccessGuard as Transform<S, ServiceRequest>>::Transform, <CommunityAccessGuard as Transform<S, ServiceRequest>>::InitError>>
type Future = Ready<Result<<CommunityAccessGuard as Transform<S, ServiceRequest>>::Transform, <CommunityAccessGuard 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 CommunityAccessGuard
impl RefUnwindSafe for CommunityAccessGuard
impl Send for CommunityAccessGuard
impl Sync for CommunityAccessGuard
impl Unpin for CommunityAccessGuard
impl UnsafeUnpin for CommunityAccessGuard
impl UnwindSafe for CommunityAccessGuard
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Fake for T
impl<T> Fake for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.