pub struct TlsExtensionBuilder<'a, 'b> { /* private fields */ }Expand description
Builds one TLS extension TLV in caller-owned storage.
Implementations§
Source§impl<'a, 'b> TlsExtensionBuilder<'a, 'b>
impl<'a, 'b> TlsExtensionBuilder<'a, 'b>
Sourcepub fn new(
buffer: &'a mut [u8],
extension_type: TlsExtensionType,
data: &'b [u8],
) -> Self
pub fn new( buffer: &'a mut [u8], extension_type: TlsExtensionType, data: &'b [u8], ) -> Self
Creates a builder that copies the supplied extension payload.
Sourcepub fn build(self) -> Result<TlsExtension<'a>, TlsBuildError>
pub fn build(self) -> Result<TlsExtension<'a>, TlsBuildError>
Validates all inputs before writing the extension.
Auto Trait Implementations§
impl<'a, 'b> !UnwindSafe for TlsExtensionBuilder<'a, 'b>
impl<'a, 'b> Freeze for TlsExtensionBuilder<'a, 'b>
impl<'a, 'b> RefUnwindSafe for TlsExtensionBuilder<'a, 'b>
impl<'a, 'b> Send for TlsExtensionBuilder<'a, 'b>
impl<'a, 'b> Sync for TlsExtensionBuilder<'a, 'b>
impl<'a, 'b> Unpin for TlsExtensionBuilder<'a, 'b>
impl<'a, 'b> UnsafeUnpin for TlsExtensionBuilder<'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