Add comments and LICENSE
This commit is contained in:
@@ -4,23 +4,12 @@ use crate::{
|
||||
parse_buffer::{ParseBuffer, ParseError},
|
||||
};
|
||||
|
||||
/// 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.
|
||||
#[derive(Debug, Copy, Clone, PartialEq)]
|
||||
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||
pub enum MaxFragmentLength {
|
||||
/// 512 bytes
|
||||
Bits9 = 1,
|
||||
/// 1024 bytes
|
||||
Bits10 = 2,
|
||||
/// 2048 bytes
|
||||
Bits11 = 3,
|
||||
/// 4096 bytes
|
||||
Bits12 = 4,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user