pub type ServerSessionKey = SessionID;

Aliased Type§

struct ServerSessionKey { /* private fields */ }

Implementations§

§

impl SessionID

pub fn random() -> Result<SessionID, GetRandomFailed>

pub fn empty() -> SessionID

pub fn len(&self) -> usize

pub fn is_empty(&self) -> bool

Trait Implementations§

§

impl Clone for SessionID

§

fn clone(&self) -> SessionID

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Codec for SessionID

§

fn encode(&self, bytes: &mut Vec<u8, Global>)

Function for encoding itself by appending itself to the provided vec of bytes.
§

fn read(r: &mut Reader<'_>) -> Option<SessionID>

Function for decoding itself from the provided reader will return Some if the decoding was successful or None if it was not.
§

fn get_encoding(&self) -> Vec<u8, Global>

Convenience function for encoding the implementation into a vec and returning it
§

fn read_bytes(bytes: &[u8]) -> Option<Self>

Function for wrapping a call to the read function in a Reader for the slice of bytes provided
§

impl Debug for SessionID

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq<SessionID> for SessionID

§

fn eq(&self, other: &SessionID) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Copy for SessionID