Struct rustls::internal::msgs::handshake::SessionID [−][src]
pub struct SessionID { /* fields omitted */ }
Methods
impl SessionID
[src]
impl SessionID
pub fn new(bytes: &[u8]) -> SessionID
[src]
pub fn new(bytes: &[u8]) -> SessionID
pub fn empty() -> SessionID
[src]
pub fn empty() -> SessionID
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
Trait Implementations
impl Copy for SessionID
[src]
impl Copy for SessionID
impl Clone for SessionID
[src]
impl Clone for SessionID
fn clone(&self) -> SessionID
[src]
fn clone(&self) -> SessionID
Returns 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 SessionID
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for SessionID
[src]
impl PartialEq for SessionID
fn eq(&self, other: &Self) -> bool
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Codec for SessionID
[src]
impl Codec for SessionID
fn 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