pub struct Record<'r> { /* private fields */ }Expand description
TLS Record Layer captured information
Implementations§
Source§impl<'r> Record<'r>
impl<'r> Record<'r>
Sourcepub fn header_as_bytes(&self) -> &[u8]
pub fn header_as_bytes(&self) -> &[u8]
Provide the header associated data
Sourcepub fn content_type(&self) -> ContentType
pub fn content_type(&self) -> ContentType
Provide the Conten Type of the Record
Sourcepub fn parse_client_appdata(
bytes: &'r [u8],
) -> Result<(Record<'r>, &'r [u8]), RecordError>
pub fn parse_client_appdata( bytes: &'r [u8], ) -> Result<(Record<'r>, &'r [u8]), RecordError>
Only parse appdata in non-handshaking context
Sourcepub fn parse_server<P: ServerRecordProcessor>(
prc: &mut P,
bytes: &'r [u8],
) -> Result<(Record<'r>, &'r [u8]), RecordError>
pub fn parse_server<P: ServerRecordProcessor>( prc: &mut P, bytes: &'r [u8], ) -> Result<(Record<'r>, &'r [u8]), RecordError>
Parse incoming byte slics into TLS Recor types with the given RecordProcessor
Sourcepub fn parse_client<P: ClientHelloProcessor>(
prc: &mut P,
bytes: &'r [u8],
) -> Result<(Record<'r>, &'r [u8]), RecordError>
pub fn parse_client<P: ClientHelloProcessor>( prc: &mut P, bytes: &'r [u8], ) -> Result<(Record<'r>, &'r [u8]), RecordError>
Parse incoming byte slices into TLS Record types with the given HelloProcessor.
Trait Implementations§
Auto Trait Implementations§
impl<'r> Freeze for Record<'r>
impl<'r> RefUnwindSafe for Record<'r>
impl<'r> Send for Record<'r>
impl<'r> Sync for Record<'r>
impl<'r> Unpin for Record<'r>
impl<'r> UnwindSafe for Record<'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