[−][src]Struct tls_parser::tls::TlsServerHelloContents
TLS Server Hello (from TLS 1.0 to TLS 1.2)
Fields
version: TlsVersion
rand_time: u32
rand_data: &'a [u8]
session_id: Option<&'a [u8]>
cipher: TlsCipherSuiteID
compression: TlsCompressionID
ext: Option<&'a [u8]>
Methods
impl<'a> TlsServerHelloContents<'a>
[src]
pub fn new(
v: u16,
rt: u32,
rd: &'a [u8],
sid: Option<&'a [u8]>,
c: u16,
co: u8,
e: Option<&'a [u8]>
) -> Self
[src]
v: u16,
rt: u32,
rd: &'a [u8],
sid: Option<&'a [u8]>,
c: u16,
co: u8,
e: Option<&'a [u8]>
) -> Self
pub fn get_version(&self) -> TlsVersion
[src]
pub fn get_cipher(&self) -> Option<&'static TlsCipherSuite>
[src]
Trait Implementations
impl<'a> Clone for TlsServerHelloContents<'a>
[src]
fn clone(&self) -> TlsServerHelloContents<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> PartialEq<TlsServerHelloContents<'a>> for TlsServerHelloContents<'a>
[src]
fn eq(&self, other: &TlsServerHelloContents<'a>) -> bool
[src]
fn ne(&self, other: &TlsServerHelloContents<'a>) -> bool
[src]
impl<'a> Debug for TlsServerHelloContents<'a>
[src]
Auto Trait Implementations
impl<'a> Sync for TlsServerHelloContents<'a>
impl<'a> Send for TlsServerHelloContents<'a>
impl<'a> Unpin for TlsServerHelloContents<'a>
impl<'a> RefUnwindSafe for TlsServerHelloContents<'a>
impl<'a> UnwindSafe for TlsServerHelloContents<'a>
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &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, 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,