Struct authzen_session::SessionService
source · pub struct SessionService<I, P, S, K, V> {
pub inner: I,
pub layer: SessionLayer<P, S, K, V>,
}Fields§
§inner: I§layer: SessionLayer<P, S, K, V>Trait Implementations§
source§impl<I: Clone, P: Clone, S: Clone, K: Clone, V: Clone> Clone for SessionService<I, P, S, K, V>
impl<I: Clone, P: Clone, S: Clone, K: Clone, V: Clone> Clone for SessionService<I, P, S, K, V>
source§fn clone(&self) -> SessionService<I, P, S, K, V>
fn clone(&self) -> SessionService<I, P, S, K, V>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<ReqBody, ResBody, I, P, S, K, V, R> Service<Request<ReqBody>> for SessionService<I, P, S, K, V>where
I: Clone + Service<Request<ReqBody>, Response = Response<ResBody>> + Send + 'static,
<I as Service<Request<ReqBody>>>::Future: Send,
S: Clone + SessionStore<Value = R>,
K: Clone + Send + 'static,
V: Clone + Send + 'static,
R: DeserializeOwned + Serialize + SessionValue<ReqBody, S> + Send + Sync + 'static,
P: Clone + Send + Sync + 'static,
Session<R>: Debug + RawSession<P, Key = K, Validation = V>,
ReqBody: Send + Sync + 'static,
ResBody: Default + Send + 'static,
impl<ReqBody, ResBody, I, P, S, K, V, R> Service<Request<ReqBody>> for SessionService<I, P, S, K, V>where I: Clone + Service<Request<ReqBody>, Response = Response<ResBody>> + Send + 'static, <I as Service<Request<ReqBody>>>::Future: Send, S: Clone + SessionStore<Value = R>, K: Clone + Send + 'static, V: Clone + Send + 'static, R: DeserializeOwned + Serialize + SessionValue<ReqBody, S> + Send + Sync + 'static, P: Clone + Send + Sync + 'static, Session<R>: Debug + RawSession<P, Key = K, Validation = V>, ReqBody: Send + Sync + 'static, ResBody: Default + Send + 'static,
§type Future = Pin<Box<dyn Future<Output = Result<Response<ResBody>, <SessionService<I, P, S, K, V> as Service<Request<ReqBody>>>::Error>> + Send + 'static, Global>>
type Future = Pin<Box<dyn Future<Output = Result<Response<ResBody>, <SessionService<I, P, S, K, V> as Service<Request<ReqBody>>>::Error>> + Send + 'static, Global>>
The future response value.