pub struct SessionResolver;Expand description
Resolves the active locale from the session data.
Reads the "locale" key from the session’s JSON data. Requires
SessionLayer to be installed before this resolver
runs in the middleware stack.
Trait Implementations§
Source§impl LocaleResolver for SessionResolver
impl LocaleResolver for SessionResolver
Auto Trait Implementations§
impl Freeze for SessionResolver
impl RefUnwindSafe for SessionResolver
impl Send for SessionResolver
impl Sync for SessionResolver
impl Unpin for SessionResolver
impl UnsafeUnpin for SessionResolver
impl UnwindSafe for SessionResolver
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