// Copyright 2022-2024 Gabriel Bjørnager Jensen. use bowshock::net::SessionToken; use bzipper::FixedString; use std::net::SocketAddr; pub struct Session { pub token: SessionToken, pub username: FixedString<0x10>, pub addr: SocketAddr, } impl PartialEq for Session { #[inline(always)] fn eq(&self, other: &SessionToken) -> bool { self.token == *other } }