Struct tls_parser::TlsServerHelloContents
source · pub struct TlsServerHelloContents<'a> {
pub version: TlsVersion,
pub random: &'a [u8],
pub session_id: Option<&'a [u8]>,
pub cipher: TlsCipherSuiteID,
pub compression: TlsCompressionID,
pub ext: Option<&'a [u8]>,
}Expand description
TLS Server Hello (from TLS 1.0 to TLS 1.2)
Fields§
§version: TlsVersion§random: &'a [u8]§session_id: Option<&'a [u8]>§cipher: TlsCipherSuiteID§compression: TlsCompressionID§ext: Option<&'a [u8]>Implementations§
source§impl<'a> TlsServerHelloContents<'a>
impl<'a> TlsServerHelloContents<'a>
pub fn new( v: u16, random: &'a [u8], sid: Option<&'a [u8]>, c: u16, co: u8, e: Option<&'a [u8]>, ) -> Self
pub fn get_version(&self) -> TlsVersion
pub fn get_cipher(&self) -> Option<&'static TlsCipherSuite>
Trait Implementations§
source§impl<'a> Clone for TlsServerHelloContents<'a>
impl<'a> Clone for TlsServerHelloContents<'a>
source§fn clone(&self) -> TlsServerHelloContents<'a>
fn clone(&self) -> TlsServerHelloContents<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'a> Debug for TlsServerHelloContents<'a>
impl<'a> Debug for TlsServerHelloContents<'a>
source§impl<'a> PartialEq for TlsServerHelloContents<'a>
impl<'a> PartialEq for TlsServerHelloContents<'a>
impl<'a> StructuralPartialEq for TlsServerHelloContents<'a>
Auto Trait Implementations§
impl<'a> Freeze for TlsServerHelloContents<'a>
impl<'a> RefUnwindSafe for TlsServerHelloContents<'a>
impl<'a> Send for TlsServerHelloContents<'a>
impl<'a> Sync for TlsServerHelloContents<'a>
impl<'a> Unpin for TlsServerHelloContents<'a>
impl<'a> UnwindSafe for TlsServerHelloContents<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)