pub struct ServerHello<'a> {
pub cipher_suite: CipherSuite,
/* private fields */
}Fields§
§cipher_suite: CipherSuiteImplementations§
Source§impl<'a> ServerHello<'a>
impl<'a> ServerHello<'a>
pub fn from_bytes( ht: HandshakeType, bytes: &'a [u8], ) -> Result<ServerHello<'a>, RlsError>
pub fn from_client_hello( client_hello: ClientHello<'_>, ) -> Result<ServerHello<'a>, RlsError>
pub fn use_ems(&self) -> bool
pub fn alpn(&self) -> Option<ALPN>
pub fn len(&self) -> usize
pub fn write_to<W>(self, writer: &mut W)where
W: WriteExt,
pub fn set_random(&mut self, random: &'a [u8])
pub fn set_session_id(&mut self, session_id: &'a [u8])
Trait Implementations§
Source§impl<'a> Debug for ServerHello<'a>
impl<'a> Debug for ServerHello<'a>
Source§impl<'a> Default for ServerHello<'a>
impl<'a> Default for ServerHello<'a>
Source§fn default() -> ServerHello<'a>
fn default() -> ServerHello<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for ServerHello<'a>
impl<'a> RefUnwindSafe for ServerHello<'a>
impl<'a> Send for ServerHello<'a>
impl<'a> Sync for ServerHello<'a>
impl<'a> Unpin for ServerHello<'a>
impl<'a> UnsafeUnpin for ServerHello<'a>
impl<'a> UnwindSafe for ServerHello<'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