pub struct TlsRecordBuilder<'a, 'b> { /* private fields */ }Expand description
Builds a TLS record in caller-owned storage.
Implementations§
Source§impl<'a, 'b> TlsRecordBuilder<'a, 'b>
impl<'a, 'b> TlsRecordBuilder<'a, 'b>
Sourcepub fn new(
buffer: &'a mut [u8],
content_type: TlsContentType,
version: TlsProtocolVersion,
fragment: &'b [u8],
) -> Self
pub fn new( buffer: &'a mut [u8], content_type: TlsContentType, version: TlsProtocolVersion, fragment: &'b [u8], ) -> Self
Starts a record builder with a copied fragment input.
Sourcepub fn build(self) -> Result<TlsRecordMut<'a>, TlsBuildError>
pub fn build(self) -> Result<TlsRecordMut<'a>, TlsBuildError>
Validates all inputs before writing the record.
Auto Trait Implementations§
impl<'a, 'b> !UnwindSafe for TlsRecordBuilder<'a, 'b>
impl<'a, 'b> Freeze for TlsRecordBuilder<'a, 'b>
impl<'a, 'b> RefUnwindSafe for TlsRecordBuilder<'a, 'b>
impl<'a, 'b> Send for TlsRecordBuilder<'a, 'b>
impl<'a, 'b> Sync for TlsRecordBuilder<'a, 'b>
impl<'a, 'b> Unpin for TlsRecordBuilder<'a, 'b>
impl<'a, 'b> UnsafeUnpin for TlsRecordBuilder<'a, 'b>
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