#[non_exhaustive]pub enum EncryptionKeyField {
NotEncrypted,
Even,
Odd,
Reserved(u8),
}Expand description
KK: Key-based Encryption Flag — whether/how the Data field is
encrypted (draft-sharabayko-srt-01 §3.1, §6). 11b is reserved for
control packets (Key Material’s own KK field, §3.2.2) and should not
appear on a data packet, but is decoded rather than rejected.
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.
NotEncrypted
00b: the payload is not encrypted.
Even
01b: encrypted with the even key.
Odd
10b: encrypted with the odd key.
Reserved(u8)
11b: reserved — only meaningful on control packets.
Implementations§
Trait Implementations§
Source§impl Clone for EncryptionKeyField
impl Clone for EncryptionKeyField
Source§fn clone(&self) -> EncryptionKeyField
fn clone(&self) -> EncryptionKeyField
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 EncryptionKeyField
Source§impl Debug for EncryptionKeyField
impl Debug for EncryptionKeyField
Source§impl Display for EncryptionKeyField
impl Display for EncryptionKeyField
impl Eq for EncryptionKeyField
Source§impl Hash for EncryptionKeyField
impl Hash for EncryptionKeyField
Source§impl PartialEq for EncryptionKeyField
impl PartialEq for EncryptionKeyField
Source§fn eq(&self, other: &EncryptionKeyField) -> bool
fn eq(&self, other: &EncryptionKeyField) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EncryptionKeyField
impl Serialize for EncryptionKeyField
impl StructuralPartialEq for EncryptionKeyField
Auto Trait Implementations§
impl Freeze for EncryptionKeyField
impl RefUnwindSafe for EncryptionKeyField
impl Send for EncryptionKeyField
impl Sync for EncryptionKeyField
impl Unpin for EncryptionKeyField
impl UnsafeUnpin for EncryptionKeyField
impl UnwindSafe for EncryptionKeyField
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