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