Struct rustls::internal::msgs::handshake::Random
[−]
[src]
pub struct Random(_);
Methods
impl Random[src]
fn from_slice(bytes: &[u8]) -> Random
fn write_slice(&self, bytes: &mut [u8])
Trait Implementations
impl Debug for Random[src]
impl Codec for Random[src]
fn encode(&self, bytes: &mut Vec<u8>)
Encode yourself by appending onto bytes.
fn read(r: &mut Reader) -> Option<Random>
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