pub struct TenantLayer<S, R> { /* private fields */ }Expand description
Tower Layer that wraps an inner service with tenant resolution.
Produced by middleware. Apply to a router with .layer() for all
strategies except crate::tenant::PathParamStrategy, which requires
.route_layer().
Implementations§
Source§impl<S, R> TenantLayer<S, R>
impl<S, R> TenantLayer<S, R>
Trait Implementations§
Source§impl<S, R> Clone for TenantLayer<S, R>
impl<S, R> Clone for TenantLayer<S, R>
Source§impl<Svc, S, R> Layer<Svc> for TenantLayer<S, R>where
S: TenantStrategy,
R: TenantResolver,
impl<Svc, S, R> Layer<Svc> for TenantLayer<S, R>where
S: TenantStrategy,
R: TenantResolver,
Auto Trait Implementations§
impl<S, R> Freeze for TenantLayer<S, R>
impl<S, R> RefUnwindSafe for TenantLayer<S, R>where
S: RefUnwindSafe,
R: RefUnwindSafe,
impl<S, R> Send for TenantLayer<S, R>
impl<S, R> Sync for TenantLayer<S, R>
impl<S, R> Unpin for TenantLayer<S, R>
impl<S, R> UnsafeUnpin for TenantLayer<S, R>
impl<S, R> UnwindSafe for TenantLayer<S, R>where
S: RefUnwindSafe,
R: RefUnwindSafe,
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