HandshakeMsg

Struct HandshakeMsg 

Source
pub struct HandshakeMsg<'r> {
    pub req_ctx: Option<u8>,
    pub msg: MsgType<'r>,
}

Fields§

§req_ctx: Option<u8>§msg: MsgType<'r>

Implementations§

Source§

impl<'r> HandshakeMsg<'r>

Source

pub fn msg(&'r self) -> &'r MsgType<'r>

The inner Message

Source

pub fn server_wrapped_ap_parse<P: ServerApRecordProcessor>( _prc: &mut P, bytes: &'r [u8], ) -> Result<Self, RecordError>

Parse Server Wrapped Record (Application phase)

Source

pub fn server_wrapped_hs_parse<P: ServerWrappedRecordProcessor>( prc: &mut P, bytes: &'r [u8], ) -> Result<Self, RecordError>

Parse Server Wrapped Record (Handshake phase)

Source

pub fn client_wrapped_parse(bytes: &'r [u8]) -> Result<Self, RecordError>

Parse Client Wrapped Record

Source

pub fn server_parse<P: ServerRecordProcessor>( prc: &mut P, bytes: &'r [u8], ) -> Result<(Self, &'r [u8]), RecordError>

Parse Server Record

Source

pub fn client_parse<P: ClientHelloProcessor>( prc: &mut P, bytes: &'r [u8], ) -> Result<(Self, &'r [u8]), RecordError>

Parse Client Record

Trait Implementations§

Source§

impl<'r> Debug for HandshakeMsg<'r>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'r> PartialEq for HandshakeMsg<'r>

Source§

fn eq(&self, other: &HandshakeMsg<'r>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'r> StructuralPartialEq for HandshakeMsg<'r>

Auto Trait Implementations§

§

impl<'r> Freeze for HandshakeMsg<'r>

§

impl<'r> RefUnwindSafe for HandshakeMsg<'r>

§

impl<'r> Send for HandshakeMsg<'r>

§

impl<'r> Sync for HandshakeMsg<'r>

§

impl<'r> Unpin for HandshakeMsg<'r>

§

impl<'r> UnwindSafe for HandshakeMsg<'r>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.