[−][src]Struct rusty_express::prelude::Session
Trait Implementations
impl SessionData for Session
[src]
impl SessionExchange for Session
[src]
fn create_new() -> Option<Self>
[src]
fn create_new_with_id(id: &str) -> Option<Self>
[src]
fn from_id(id: String) -> Option<Self>
[src]
fn from_or_new(id: String) -> Option<Self>
[src]
fn release(id: String)
[src]
impl<T: SessionData> SessionHandler<T> for Session
[src]
fn get_id(&self) -> String
[src]
fn get_data(&self) -> Option<T>
[src]
fn set_data(&mut self, val: T)
[src]
Set new session key-value pair, returns the old value if the key already exists
fn lifetime_auto_renew(&mut self, auto_renewal: bool)
[src]
fn expires_at(&mut self, expires_time: DateTime<Utc>)
[src]
Set the expires system time. This will turn off auto session life time renew if it's set.
fn save(&mut self)
[src]
Manually save the session to the store. Normally when the session object goes out of the scope, it will be automatically saved to the session-store if it has been updated. Though we still provide this API to provide more flexibility towards session handling.
impl PersistHandler for Session
[src]
fn init_from_file(path: &Path) -> bool
[src]
fn save_to_file(path: &Path)
[src]
impl Clone for Session
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Drop for Session
[src]
Auto Trait Implementations
impl Sync for Session
impl Send for Session
impl Unpin for Session
impl RefUnwindSafe for Session
impl UnwindSafe for Session
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,