pub struct StaticRecordBuilder<const N: usize> { /* private fields */ }Expand description
Provides statically allocated Record Builder based on worst case estimation of the maximum size of record. Typically record sizes need to be also limited based on the record limit extension but this has to be done in runtime.
Trait Implementations§
Source§impl<const N: usize> Debug for StaticRecordBuilder<N>
impl<const N: usize> Debug for StaticRecordBuilder<N>
Source§impl<const N: usize> HandshakeBuilder for StaticRecordBuilder<N>
impl<const N: usize> HandshakeBuilder for StaticRecordBuilder<N>
Source§fn client_hello_untyped<S: ClientHelloBuilder>(
s: &S,
) -> Result<Self, Self::Error>
fn client_hello_untyped<S: ClientHelloBuilder>( s: &S, ) -> Result<Self, Self::Error>
Construct a handshake record featuring a Client Hello from untyped raw data.
Source§fn server_hello_untyped<S: ServerHelloBuilder>(
s: &S,
) -> Result<Self, Self::Error>
fn server_hello_untyped<S: ServerHelloBuilder>( s: &S, ) -> Result<Self, Self::Error>
Construct a Handshake record featuring a Server Hello from untyped raw data.
type Error = BuilderError
Source§fn as_hashing_context(&self) -> &[u8]
fn as_hashing_context(&self) -> &[u8]
Provide the raw encoded bytes but without header
Source§fn as_encoded_bytes(&self) -> &[u8]
fn as_encoded_bytes(&self) -> &[u8]
Provide the raw encoded bytes
Source§impl<const N: usize> PartialEq for StaticRecordBuilder<N>
impl<const N: usize> PartialEq for StaticRecordBuilder<N>
impl<const N: usize> StructuralPartialEq for StaticRecordBuilder<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for StaticRecordBuilder<N>
impl<const N: usize> RefUnwindSafe for StaticRecordBuilder<N>
impl<const N: usize> Send for StaticRecordBuilder<N>
impl<const N: usize> Sync for StaticRecordBuilder<N>
impl<const N: usize> Unpin for StaticRecordBuilder<N>
impl<const N: usize> UnwindSafe for StaticRecordBuilder<N>
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