Trait tls_parser::ClientHello 
source · pub trait ClientHello<'a> {
    // Required methods
    fn version(&self) -> TlsVersion;
    fn random(&self) -> &'a [u8] ⓘ;
    fn session_id(&self) -> Option<&'a [u8]>;
    fn ciphers(&self) -> &Vec<TlsCipherSuiteID>;
    fn comp(&self) -> &Vec<TlsCompressionID>;
    fn ext(&self) -> Option<&'a [u8]>;
    // Provided methods
    fn rand_time(&self) -> u32 { ... }
    fn rand_bytes(&self) -> &'a [u8] ⓘ { ... }
    fn cipher_suites(&self) -> Vec<Option<&'static TlsCipherSuite>> { ... }
}Expand description
A trait that both TLS & DTLS satisfy
Required Methods§
sourcefn version(&self) -> TlsVersion
 
fn version(&self) -> TlsVersion
TLS version of message
fn random(&self) -> &'a [u8] ⓘ
fn session_id(&self) -> Option<&'a [u8]>
sourcefn ciphers(&self) -> &Vec<TlsCipherSuiteID>
 
fn ciphers(&self) -> &Vec<TlsCipherSuiteID>
A list of ciphers supported by client
sourcefn comp(&self) -> &Vec<TlsCompressionID>
 
fn comp(&self) -> &Vec<TlsCompressionID>
A list of compression methods supported by client