pub struct FrameContentSize(/* private fields */);Expand description
A frame content length proven to fit in the protocol’s 15-bit wire field.
Implementations§
Source§impl FrameContentSize
impl FrameContentSize
Sourcepub const fn encrypted_wire_value(self) -> u16
pub const fn encrypted_wire_value(self) -> u16
Returns the wire value with the encrypted-frame marker set.
Sourcepub fn encrypted_data_len(self) -> usize
pub fn encrypted_data_len(self) -> usize
Returns the block-aligned ciphertext length for this content size.
Trait Implementations§
Source§impl Clone for FrameContentSize
impl Clone for FrameContentSize
impl Copy for FrameContentSize
Source§impl Debug for FrameContentSize
impl Debug for FrameContentSize
impl Eq for FrameContentSize
Source§impl PartialEq for FrameContentSize
impl PartialEq for FrameContentSize
impl StructuralPartialEq for FrameContentSize
Auto Trait Implementations§
impl Freeze for FrameContentSize
impl RefUnwindSafe for FrameContentSize
impl Send for FrameContentSize
impl Sync for FrameContentSize
impl Unpin for FrameContentSize
impl UnsafeUnpin for FrameContentSize
impl UnwindSafe for FrameContentSize
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