pub struct TlsRecordMut<'a> { /* private fields */ }Expand description
A mutable structurally bounded TLS record.
Implementations§
Source§impl<'a> TlsRecordMut<'a>
impl<'a> TlsRecordMut<'a>
Sourcepub fn parse(bytes: &'a mut [u8]) -> Result<Self, TlsParseError>
pub fn parse(bytes: &'a mut [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 set_content_type(&mut self, value: TlsContentType)
pub fn set_content_type(&mut self, value: TlsContentType)
Replaces the content type.
Sourcepub fn version(&self) -> TlsProtocolVersion
pub fn version(&self) -> TlsProtocolVersion
Returns the legacy record version.
Sourcepub fn set_version(&mut self, value: TlsProtocolVersion)
pub fn set_version(&mut self, value: TlsProtocolVersion)
Replaces the legacy record version.
Sourcepub fn fragment_mut(&mut self) -> &mut [u8] ⓘ
pub fn fragment_mut(&mut self) -> &mut [u8] ⓘ
Returns the fragment mutably without changing its encoded length.
Trait Implementations§
Source§impl<'a> Debug for TlsRecordMut<'a>
impl<'a> Debug for TlsRecordMut<'a>
impl<'a> Eq for TlsRecordMut<'a>
Source§impl<'a> PartialEq for TlsRecordMut<'a>
impl<'a> PartialEq for TlsRecordMut<'a>
impl<'a> StructuralPartialEq for TlsRecordMut<'a>
Auto Trait Implementations§
impl<'a> !UnwindSafe for TlsRecordMut<'a>
impl<'a> Freeze for TlsRecordMut<'a>
impl<'a> RefUnwindSafe for TlsRecordMut<'a>
impl<'a> Send for TlsRecordMut<'a>
impl<'a> Sync for TlsRecordMut<'a>
impl<'a> Unpin for TlsRecordMut<'a>
impl<'a> UnsafeUnpin for TlsRecordMut<'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