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>
impl<'r> HandshakeMsg<'r>
Sourcepub fn server_wrapped_ap_parse<P: ServerApRecordProcessor>(
_prc: &mut P,
bytes: &'r [u8],
) -> Result<Self, RecordError>
pub fn server_wrapped_ap_parse<P: ServerApRecordProcessor>( _prc: &mut P, bytes: &'r [u8], ) -> Result<Self, RecordError>
Parse Server Wrapped Record (Application phase)
Sourcepub fn server_wrapped_hs_parse<P: ServerWrappedRecordProcessor>(
prc: &mut P,
bytes: &'r [u8],
) -> Result<Self, RecordError>
pub fn server_wrapped_hs_parse<P: ServerWrappedRecordProcessor>( prc: &mut P, bytes: &'r [u8], ) -> Result<Self, RecordError>
Parse Server Wrapped Record (Handshake phase)
Sourcepub fn client_wrapped_parse(bytes: &'r [u8]) -> Result<Self, RecordError>
pub fn client_wrapped_parse(bytes: &'r [u8]) -> Result<Self, RecordError>
Parse Client Wrapped Record
Sourcepub fn server_parse<P: ServerRecordProcessor>(
prc: &mut P,
bytes: &'r [u8],
) -> Result<(Self, &'r [u8]), RecordError>
pub fn server_parse<P: ServerRecordProcessor>( prc: &mut P, bytes: &'r [u8], ) -> Result<(Self, &'r [u8]), RecordError>
Parse Server Record
Sourcepub fn client_parse<P: ClientHelloProcessor>(
prc: &mut P,
bytes: &'r [u8],
) -> Result<(Self, &'r [u8]), RecordError>
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>
impl<'r> Debug for HandshakeMsg<'r>
Source§impl<'r> PartialEq for HandshakeMsg<'r>
impl<'r> PartialEq for HandshakeMsg<'r>
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> 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