pub struct TlsRecord<'a> { /* private fields */ }Expand description
A single structurally bounded TLS record.
Implementations§
Source§impl<'a> TlsRecord<'a>
impl<'a> TlsRecord<'a>
Sourcepub fn parse(bytes: &'a [u8]) -> Result<Self, TlsParseError>
pub fn parse(bytes: &'a [u8]) -> Result<Self, TlsParseError>
Parses the first complete record and excludes any coalesced suffix.
Sourcepub fn content_type(&self) -> TlsContentType
pub fn content_type(&self) -> TlsContentType
Returns the content type.
Sourcepub fn version(&self) -> TlsProtocolVersion
pub fn version(&self) -> TlsProtocolVersion
Returns the legacy record version.
Trait Implementations§
impl<'a> Copy for TlsRecord<'a>
impl<'a> Eq for TlsRecord<'a>
impl<'a> StructuralPartialEq for TlsRecord<'a>
Auto Trait Implementations§
impl<'a> Freeze for TlsRecord<'a>
impl<'a> RefUnwindSafe for TlsRecord<'a>
impl<'a> Send for TlsRecord<'a>
impl<'a> Sync for TlsRecord<'a>
impl<'a> Unpin for TlsRecord<'a>
impl<'a> UnsafeUnpin for TlsRecord<'a>
impl<'a> UnwindSafe for TlsRecord<'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