Enum embedded_tls::MaxFragmentLength
source · pub enum MaxFragmentLength {
Bits9 = 1,
Bits10 = 2,
Bits11 = 3,
Bits12 = 4,
}
Expand description
Maximum plaintext fragment length
RFC 6066, Section 4. Maximum Fragment Length Negotiation Without this extension, TLS specifies a fixed maximum plaintext fragment length of 2^14 bytes. It may be desirable for constrained clients to negotiate a smaller maximum fragment length due to memory limitations or bandwidth limitations.
Variants§
Implementations§
Trait Implementations§
source§impl Clone for MaxFragmentLength
impl Clone for MaxFragmentLength
source§fn clone(&self) -> MaxFragmentLength
fn clone(&self) -> MaxFragmentLength
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MaxFragmentLength
impl Debug for MaxFragmentLength
source§impl PartialEq for MaxFragmentLength
impl PartialEq for MaxFragmentLength
source§fn eq(&self, other: &MaxFragmentLength) -> bool
fn eq(&self, other: &MaxFragmentLength) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MaxFragmentLength
impl StructuralPartialEq for MaxFragmentLength
Auto Trait Implementations§
impl RefUnwindSafe for MaxFragmentLength
impl Send for MaxFragmentLength
impl Sync for MaxFragmentLength
impl Unpin for MaxFragmentLength
impl UnwindSafe for MaxFragmentLength
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