[−][src]Struct tls_parser::tls::TlsClientHelloContents
TLS Client Hello (from TLS 1.0 to TLS 1.2)
Some fields are unparsed (for performance reasons), for ex to parse ext,
call the parse_tls_extensions function.
Fields
version: TlsVersionTLS version of message
rand_time: u32rand_data: &'a [u8]session_id: Option<&'a [u8]>ciphers: Vec<TlsCipherSuiteID>A list of ciphers supported by client
comp: Vec<TlsCompressionID>A list of compression methods supported by client
ext: Option<&'a [u8]>Implementations
impl<'a> TlsClientHelloContents<'a>[src]
pub fn new(
v: u16,
rt: u32,
rd: &'a [u8],
sid: Option<&'a [u8]>,
c: Vec<TlsCipherSuiteID>,
co: Vec<TlsCompressionID>,
e: Option<&'a [u8]>
) -> Self[src]
v: u16,
rt: u32,
rd: &'a [u8],
sid: Option<&'a [u8]>,
c: Vec<TlsCipherSuiteID>,
co: Vec<TlsCompressionID>,
e: Option<&'a [u8]>
) -> Self
pub fn get_version(&self) -> TlsVersion[src]
pub fn get_ciphers(&self) -> Vec<Option<&'static TlsCipherSuite>>[src]
Trait Implementations
impl<'a> Clone for TlsClientHelloContents<'a>[src]
pub fn clone(&self) -> TlsClientHelloContents<'a>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'a> Debug for TlsClientHelloContents<'a>[src]
impl<'a> PartialEq<TlsClientHelloContents<'a>> for TlsClientHelloContents<'a>[src]
pub fn eq(&self, other: &TlsClientHelloContents<'a>) -> bool[src]
pub fn ne(&self, other: &TlsClientHelloContents<'a>) -> bool[src]
impl<'a> StructuralPartialEq for TlsClientHelloContents<'a>[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for TlsClientHelloContents<'a>[src]
impl<'a> Send for TlsClientHelloContents<'a>[src]
impl<'a> Sync for TlsClientHelloContents<'a>[src]
impl<'a> Unpin for TlsClientHelloContents<'a>[src]
impl<'a> UnwindSafe for TlsClientHelloContents<'a>[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,