pub struct Inner<T: SessionStore> {
pub state: AtomicU8,
pub id: RwLock<Option<Id>>,
pub cookie_max_age: AtomicI64,
pub cookie_name: Option<&'static str>,
pub cookies: OnceLock<Cookies>,
pub store: Arc<T>,
}Fields§
§state: AtomicU8§id: RwLock<Option<Id>>§store: Arc<T>Implementations§
Source§impl<T: SessionStore> Inner<T>
impl<T: SessionStore> Inner<T>
pub fn new( store: Arc<T>, cookie_name: Option<&'static str>, cookie_max_age: Option<i64>, ) -> Self
pub fn is_changed(&self) -> bool
pub fn is_deleted(&self) -> bool
pub fn get_id(&self) -> Option<Id>
pub fn get_or_set_id(&self) -> Id
pub fn set_id(&self, id: Option<Id>)
pub fn set_changed(&self)
pub fn set_deleted(&self)
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Inner<T>
impl<T> !RefUnwindSafe for Inner<T>
impl<T> Send for Inner<T>
impl<T> Sync for Inner<T>
impl<T> Unpin for Inner<T>
impl<T> !UnwindSafe for Inner<T>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 more