pub struct Dtls13CiphertextHeader<'cid> { /* private fields */ }Expand description
Caller-supplied DTLS 1.3 unified-header fields for encoding.
Implementations§
Source§impl<'cid> Dtls13CiphertextHeader<'cid>
impl<'cid> Dtls13CiphertextHeader<'cid>
Sourcepub fn new(
epoch_bits: u8,
connection_id: &'cid [u8],
sequence: Dtls13Sequence,
length_present: bool,
) -> Result<Self, RecordError>
pub fn new( epoch_bits: u8, connection_id: &'cid [u8], sequence: Dtls13Sequence, length_present: bool, ) -> Result<Self, RecordError>
Creates checked caller-supplied unified-header fields.
Sourcepub const fn epoch_bits(self) -> u8
pub const fn epoch_bits(self) -> u8
Returns the low two encoded epoch bits.
Sourcepub const fn connection_id(self) -> &'cid [u8]
pub const fn connection_id(self) -> &'cid [u8]
Returns the exact borrowed Connection ID.
Sourcepub const fn sequence(self) -> Dtls13Sequence
pub const fn sequence(self) -> Dtls13Sequence
Returns the exact truncated sequence number.
Sourcepub const fn length_present(self) -> bool
pub const fn length_present(self) -> bool
Reports whether the encoded header includes a length field.
Trait Implementations§
Source§impl<'cid> Clone for Dtls13CiphertextHeader<'cid>
impl<'cid> Clone for Dtls13CiphertextHeader<'cid>
Source§fn clone(&self) -> Dtls13CiphertextHeader<'cid>
fn clone(&self) -> Dtls13CiphertextHeader<'cid>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'cid> Copy for Dtls13CiphertextHeader<'cid>
Source§impl<'cid> Debug for Dtls13CiphertextHeader<'cid>
impl<'cid> Debug for Dtls13CiphertextHeader<'cid>
impl<'cid> Eq for Dtls13CiphertextHeader<'cid>
Source§impl<'cid> Hash for Dtls13CiphertextHeader<'cid>
impl<'cid> Hash for Dtls13CiphertextHeader<'cid>
Source§impl<'cid> PartialEq for Dtls13CiphertextHeader<'cid>
impl<'cid> PartialEq for Dtls13CiphertextHeader<'cid>
impl<'cid> StructuralPartialEq for Dtls13CiphertextHeader<'cid>
Auto Trait Implementations§
impl<'cid> Freeze for Dtls13CiphertextHeader<'cid>
impl<'cid> RefUnwindSafe for Dtls13CiphertextHeader<'cid>
impl<'cid> Send for Dtls13CiphertextHeader<'cid>
impl<'cid> Sync for Dtls13CiphertextHeader<'cid>
impl<'cid> Unpin for Dtls13CiphertextHeader<'cid>
impl<'cid> UnsafeUnpin for Dtls13CiphertextHeader<'cid>
impl<'cid> UnwindSafe for Dtls13CiphertextHeader<'cid>
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