pub enum ProtectionLevel {
None,
Sign,
Encrypt,
}Expand description
Abstraktes Schutz-Level fuer die Policy-Ebene.
Im Gegensatz zu ProtectionKind (XML-Parser-Typ, 5 Varianten
inkl. Origin-Authentication) traegt ProtectionLevel nur die 3
Grund-Klassen. Policy-Entscheidungen vergleichen/ordnen diese
Stufen — die Origin-Auth-Verfeinerung folgt aus
PolicyDecision::suite (Receiver-Specific-MACs, RC1).
Die Reihenfolge None < Sign < Encrypt ist fuer das “staerkster
Wert gewinnt”-Matching in Stufe 3 (SEDP-Endpoint-Caps) relevant
— Ord/PartialOrd sind entsprechend definiert.
Variants§
None
Kein Schutz — plaintext-RTPS auf dem Wire.
Sign
Integrity-Schutz (HMAC/AEAD-Tag), Payload bleibt lesbar.
Encrypt
Integrity + Confidentiality (AEAD-Ciphertext).
Implementations§
Source§impl ProtectionLevel
impl ProtectionLevel
Sourcepub fn from_protection_kind(kind: ProtectionKind) -> Self
pub fn from_protection_kind(kind: ProtectionKind) -> Self
Mapping aus Governance-XML-ProtectionKind. Origin-Auth-
Varianten kollabieren auf ihre Grund-Klasse; die Origin-Auth-
Eigenschaft wird per PolicyDecision::suite +
Receiver-Specific-MAC-Encoding transportiert.
Sourcepub fn to_protection_kind(self) -> ProtectionKind
pub fn to_protection_kind(self) -> ProtectionKind
Rueck-Mapping auf ProtectionKind ohne Origin-Auth-Verfeinerung.
Trait Implementations§
Source§impl Clone for ProtectionLevel
impl Clone for ProtectionLevel
Source§fn clone(&self) -> ProtectionLevel
fn clone(&self) -> ProtectionLevel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProtectionLevel
impl Debug for ProtectionLevel
Source§impl Default for ProtectionLevel
impl Default for ProtectionLevel
Source§fn default() -> ProtectionLevel
fn default() -> ProtectionLevel
Source§impl Hash for ProtectionLevel
impl Hash for ProtectionLevel
Source§impl Ord for ProtectionLevel
impl Ord for ProtectionLevel
Source§fn cmp(&self, other: &ProtectionLevel) -> Ordering
fn cmp(&self, other: &ProtectionLevel) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ProtectionLevel
impl PartialEq for ProtectionLevel
Source§fn eq(&self, other: &ProtectionLevel) -> bool
fn eq(&self, other: &ProtectionLevel) -> bool
self and other values to be equal, and is used by ==.