pub enum ProtectionKind {
None,
Sign,
Encrypt,
SignWithOriginAuthentication,
EncryptWithOriginAuthentication,
}Expand description
Topic-Protection-Kind (Spec §9.4.1.2 Tabelle 48).
Variants§
None
Keine Schutzmassnahme.
Sign
Nur Integrity (HMAC / Signature).
Encrypt
Integrity + Confidentiality (AEAD).
SignWithOriginAuthentication
Wie Sign, aber pro Remote-Reader eigene MAC.
EncryptWithOriginAuthentication
Wie Encrypt, aber pro Remote-Reader eigene MAC.
Trait Implementations§
Source§impl Clone for ProtectionKind
impl Clone for ProtectionKind
Source§fn clone(&self) -> ProtectionKind
fn clone(&self) -> ProtectionKind
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 moreSource§impl Debug for ProtectionKind
impl Debug for ProtectionKind
Source§impl Default for ProtectionKind
impl Default for ProtectionKind
Source§fn default() -> ProtectionKind
fn default() -> ProtectionKind
Returns the “default value” for a type. Read more
Source§impl PartialEq for ProtectionKind
impl PartialEq for ProtectionKind
Source§fn eq(&self, other: &ProtectionKind) -> bool
fn eq(&self, other: &ProtectionKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ProtectionKind
impl Eq for ProtectionKind
impl StructuralPartialEq for ProtectionKind
Auto Trait Implementations§
impl Freeze for ProtectionKind
impl RefUnwindSafe for ProtectionKind
impl Send for ProtectionKind
impl Sync for ProtectionKind
impl Unpin for ProtectionKind
impl UnsafeUnpin for ProtectionKind
impl UnwindSafe for ProtectionKind
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