Struct rustls::internal::msgs::handshake::SessionID
[−]
[src]
pub struct SessionID { /* fields omitted */ }
Methods
impl SessionID
[src]
fn new(bytes: &[u8]) -> SessionID
fn empty() -> SessionID
fn len(&self) -> usize
fn is_empty(&self) -> bool
Trait Implementations
impl Copy for SessionID
[src]
impl Clone for SessionID
[src]
fn clone(&self) -> SessionID
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for SessionID
[src]
impl PartialEq for SessionID
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Codec for SessionID
[src]
fn encode(&self, bytes: &mut Vec<u8>)
Encode yourself by appending onto bytes
.
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>
Convenience function to get the results of encode()
.
fn read_bytes(bytes: &[u8]) -> Option<Self>
Read one of these from the front of bytes
and return it. Read more