#[non_exhaustive]pub enum MaxPayloadCode {
Byte2048,
Byte4096,
Byte8192,
Byte16384,
Byte32768,
Byte65536,
Byte131072,
Reserved(u8),
}Expand description
MaxPayloadCode — Table G.17.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Byte2048
2 048 byte.
Byte4096
4 096 byte.
Byte8192
8 192 byte.
Byte16384
16 384 byte.
Byte32768
32 768 byte.
Byte65536
65 536 byte.
Byte131072
131 072 byte.
Reserved(u8)
Reserved for future use.
Implementations§
Trait Implementations§
Source§impl Clone for MaxPayloadCode
impl Clone for MaxPayloadCode
Source§fn clone(&self) -> MaxPayloadCode
fn clone(&self) -> MaxPayloadCode
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 Copy for MaxPayloadCode
Source§impl Debug for MaxPayloadCode
impl Debug for MaxPayloadCode
Source§impl Display for MaxPayloadCode
impl Display for MaxPayloadCode
impl Eq for MaxPayloadCode
Source§impl PartialEq for MaxPayloadCode
impl PartialEq for MaxPayloadCode
Source§fn eq(&self, other: &MaxPayloadCode) -> bool
fn eq(&self, other: &MaxPayloadCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MaxPayloadCode
impl Serialize for MaxPayloadCode
impl StructuralPartialEq for MaxPayloadCode
Auto Trait Implementations§
impl Freeze for MaxPayloadCode
impl RefUnwindSafe for MaxPayloadCode
impl Send for MaxPayloadCode
impl Sync for MaxPayloadCode
impl Unpin for MaxPayloadCode
impl UnsafeUnpin for MaxPayloadCode
impl UnwindSafe for MaxPayloadCode
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