Skip to main content

StaticRecordBuilder

Struct StaticRecordBuilder 

Source
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>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<const N: usize> HandshakeBuilder for StaticRecordBuilder<N>

Source§

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>

Construct a Handshake record featuring a Server Hello from untyped raw data.

Source§

type Error = BuilderError

Source§

fn as_hashing_context(&self) -> &[u8]

Provide the raw encoded bytes but without header
Source§

fn as_encoded_bytes(&self) -> &[u8]

Provide the raw encoded bytes
Source§

impl<const N: usize> PartialEq for StaticRecordBuilder<N>

Source§

fn eq(&self, other: &StaticRecordBuilder<N>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<const N: usize> StructuralPartialEq for StaticRecordBuilder<N>

Auto Trait Implementations§

§

impl<const N: usize> Freeze for StaticRecordBuilder<N>
where RecordBuffer<N>: Freeze,

§

impl<const N: usize> RefUnwindSafe for StaticRecordBuilder<N>
where RecordBuffer<N>: RefUnwindSafe,

§

impl<const N: usize> Send for StaticRecordBuilder<N>
where RecordBuffer<N>: Send,

§

impl<const N: usize> Sync for StaticRecordBuilder<N>
where RecordBuffer<N>: Sync,

§

impl<const N: usize> Unpin for StaticRecordBuilder<N>
where RecordBuffer<N>: Unpin,

§

impl<const N: usize> UnsafeUnpin for StaticRecordBuilder<N>
where RecordBuffer<N>: UnsafeUnpin,

§

impl<const N: usize> UnwindSafe for StaticRecordBuilder<N>
where RecordBuffer<N>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.