pub struct AuthState<S: SessionStorage, R: SessionDataRefresher> {
pub token_generator: Arc<TokenGenerator>,
pub storage: Arc<S>,
pub refresher: Arc<R>,
}
Fields§
§token_generator: Arc<TokenGenerator>
§storage: Arc<S>
§refresher: Arc<R>
Trait Implementations§
Source§impl<S: Clone + SessionStorage, R: Clone + SessionDataRefresher> Clone for AuthState<S, R>
impl<S: Clone + SessionStorage, R: Clone + SessionDataRefresher> Clone for AuthState<S, R>
Source§impl<S, R, T> FromRequestParts<AuthState<S, R>> for OptionalRefreshSession<T>
impl<S, R, T> FromRequestParts<AuthState<S, R>> for OptionalRefreshSession<T>
Source§impl<S, R, T> FromRequestParts<AuthState<S, R>> for OptionalSession<T>
impl<S, R, T> FromRequestParts<AuthState<S, R>> for OptionalSession<T>
Source§impl<S, R, T> FromRequestParts<AuthState<S, R>> for RefreshSession<T>
impl<S, R, T> FromRequestParts<AuthState<S, R>> for RefreshSession<T>
Source§impl<S, R, T> FromRequestParts<AuthState<S, R>> for Session<T>
impl<S, R, T> FromRequestParts<AuthState<S, R>> for Session<T>
Auto Trait Implementations§
impl<S, R> Freeze for AuthState<S, R>
impl<S, R> RefUnwindSafe for AuthState<S, R>where
S: RefUnwindSafe,
R: RefUnwindSafe,
impl<S, R> Send for AuthState<S, R>
impl<S, R> Sync for AuthState<S, R>
impl<S, R> Unpin for AuthState<S, R>
impl<S, R> UnwindSafe for AuthState<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