Struct rustls::internal::msgs::handshake::SessionID [−][src]
pub struct SessionID { /* fields omitted */ }Methods
impl SessionID[src]
impl SessionIDpub fn new(bytes: &[u8]) -> SessionID[src]
pub fn new(bytes: &[u8]) -> SessionIDpub fn empty() -> SessionID[src]
pub fn empty() -> SessionIDpub fn len(&self) -> usize[src]
pub fn len(&self) -> usizepub fn is_empty(&self) -> bool[src]
pub fn is_empty(&self) -> boolTrait Implementations
impl Copy for SessionID[src]
impl Copy for SessionIDimpl Clone for SessionID[src]
impl Clone for SessionIDfn clone(&self) -> SessionID[src]
fn clone(&self) -> SessionIDReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for SessionID[src]
impl Debug for SessionIDfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for SessionID[src]
impl PartialEq for SessionIDfn eq(&self, other: &Self) -> bool[src]
fn eq(&self, other: &Self) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Codec for SessionID[src]
impl Codec for SessionIDfn encode(&self, bytes: &mut Vec<u8>)[src]
fn encode(&self, bytes: &mut Vec<u8>)Encode yourself by appending onto bytes.
fn read(r: &mut Reader) -> Option<SessionID>[src]
fn read(r: &mut Reader) -> Option<SessionID>Decode yourself by fiddling with the Reader. Return Some if it worked, None if not. Read more
fn get_encoding(&self) -> Vec<u8>[src]
fn get_encoding(&self) -> Vec<u8>Convenience function to get the results of encode().
fn read_bytes(bytes: &[u8]) -> Option<Self>[src]
fn read_bytes(bytes: &[u8]) -> Option<Self>Read one of these from the front of bytes and return it. Read more