pub struct Session {
pub address: SocketAddr,
pub username: String,
pub password: String,
pub channels: Vec<u16>,
pub port: Option<u16>,
pub expires: u32,
pub permissions: Vec<u16>,
}Fields§
§address: SocketAddrThe IP address and port number currently used by the session
username: StringUsername used in session authentication
password: StringThe password used in session authentication
channels: Vec<u16>Channel numbers that have been assigned to the session
port: Option<u16>Port numbers that have been assigned to the session
expires: u32The validity period of the current session application, in seconds
permissions: Vec<u16>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Session
impl<'de> Deserialize<'de> for Session
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin 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