pub struct PeerCapabilities {Show 13 fields
pub raw: u32,
pub has_spdp: bool,
pub has_sedp_publications: bool,
pub has_sedp_subscriptions: bool,
pub has_wlp: bool,
pub has_type_lookup: bool,
pub has_topics_discovery: bool,
pub has_secure_publications: bool,
pub has_secure_subscriptions: bool,
pub has_secure_wlp: bool,
pub has_stateless_auth: bool,
pub has_volatile_secure: bool,
pub has_secure_participant: bool,
}Expand description
High-level Klassifikation eines Peer-BuiltinEndpointSets.
Wird vom DCPS-Runtime aus dem SPDP-Beacon eines Peers errechnet
und an die SEDP-/WLP-/Security-Match-Logic weitergegeben.
Fields§
§raw: u32Roh-Bitmaske, wie sie vom Peer announced wurde — fuer Audit-/Diagnose-Pfade.
has_spdp: boolSPDP-Endpoints (Bits 0/1).
has_sedp_publications: boolSEDP-Publications-Endpoints (Bits 2/3).
has_sedp_subscriptions: boolSEDP-Subscriptions-Endpoints (Bits 4/5).
has_wlp: boolWriter-Liveliness-Protocol (Bits 10/11).
has_type_lookup: boolTypeLookup-Service (Bits 12/13, XTypes 1.3 §7.6.3.3.4).
has_topics_discovery: boolXTypes-Topics-Discovery (Bits 28/29).
has_secure_publications: boolSecure-Publications-Endpoints (Bits 16/17).
has_secure_subscriptions: boolSecure-Subscriptions-Endpoints (Bits 18/19).
has_secure_wlp: boolSecure-WLP-Endpoints (Bits 20/21).
has_stateless_auth: boolAuth-Stateless-Endpoints (Bits 22/23).
has_volatile_secure: boolCrypto-KeyExchange-Endpoints (Bits 24/25).
has_secure_participant: boolSecure-Participant-Discovery (Bits 26/27).
Implementations§
Source§impl PeerCapabilities
impl PeerCapabilities
Sourcepub fn supports_security(&self) -> bool
pub fn supports_security(&self) -> bool
true wenn der Peer mindestens ein Secure-Discovery-Bit
gesetzt hat (Sub-Bits 16..27). Wird vom Security-Pfad genutzt,
um zu entscheiden, ob ein Secure-Handshake versucht werden
kann oder ob der Peer Plain-Discovery erwartet.
Sourcepub fn fully_standard(&self) -> bool
pub fn fully_standard(&self) -> bool
true wenn der Peer alle Standard-Bits gesetzt hat
(Erwartung an einen Spec-konformen DDSI-2.5-Stack ohne
Security).
Trait Implementations§
Source§impl Clone for PeerCapabilities
impl Clone for PeerCapabilities
Source§fn clone(&self) -> PeerCapabilities
fn clone(&self) -> PeerCapabilities
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 PeerCapabilities
impl Debug for PeerCapabilities
Source§impl Default for PeerCapabilities
impl Default for PeerCapabilities
Source§fn default() -> PeerCapabilities
fn default() -> PeerCapabilities
Source§impl PartialEq for PeerCapabilities
impl PartialEq for PeerCapabilities
Source§fn eq(&self, other: &PeerCapabilities) -> bool
fn eq(&self, other: &PeerCapabilities) -> bool
self and other values to be equal, and is used by ==.