pub struct Session {
pub id: u64,
pub peer_addr: SocketAddr,
pub created_at: u64,
pub last_activity: u64,
}Expand description
Session information.
Fields§
§id: u64Session ID.
peer_addr: SocketAddrPeer address.
created_at: u64Creation timestamp (nanos since epoch).
last_activity: u64Last activity timestamp.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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