pub struct RawSession {
pub id: SessionId,
pub user: UserIdRef,
pub ctime: Instant,
pub atime: Instant,
}Fields§
§id: SessionId§user: UserIdRef§ctime: Instant§atime: InstantImplementations§
Source§impl RawSession
impl RawSession
pub fn into_session(self, user_display_name: UserDisplayNameVersions) -> Session
Trait Implementations§
Source§impl Clone for RawSession
impl Clone for RawSession
Source§fn clone(&self) -> RawSession
fn clone(&self) -> RawSession
Returns a duplicate 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 Debug for RawSession
impl Debug for RawSession
Source§impl Hash for RawSession
impl Hash for RawSession
Source§impl Ord for RawSession
impl Ord for RawSession
Source§fn cmp(&self, other: &RawSession) -> Ordering
fn cmp(&self, other: &RawSession) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RawSession
impl PartialEq for RawSession
Source§impl PartialOrd for RawSession
impl PartialOrd for RawSession
impl Eq for RawSession
impl StructuralPartialEq for RawSession
Auto Trait Implementations§
impl Freeze for RawSession
impl RefUnwindSafe for RawSession
impl Send for RawSession
impl Sync for RawSession
impl Unpin for RawSession
impl UnwindSafe for RawSession
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