Skip to main content

ParticipantBuiltinTopicData

Struct ParticipantBuiltinTopicData 

Source
pub struct ParticipantBuiltinTopicData {
Show 18 fields pub guid: Guid, pub protocol_version: ProtocolVersion, pub vendor_id: VendorId, pub default_unicast_locator: Option<Locator>, pub default_multicast_locator: Option<Locator>, pub metatraffic_unicast_locator: Option<Locator>, pub metatraffic_multicast_locator: Option<Locator>, pub domain_id: Option<u32>, pub builtin_endpoint_set: u32, pub lease_duration: Duration, pub user_data: Vec<u8>, pub properties: WirePropertyList, pub identity_token: Option<Vec<u8>>, pub permissions_token: Option<Vec<u8>>, pub identity_status_token: Option<Vec<u8>>, pub sig_algo_info: Option<ParticipantSecurityDigitalSignatureAlgorithmInfo>, pub kx_algo_info: Option<ParticipantSecurityKeyEstablishmentAlgorithmInfo>, pub sym_cipher_algo_info: Option<ParticipantSecuritySymmetricCipherAlgorithmInfo>,
}
Expand description

SPDP-Discovered-Participant-Daten. Subset.

Fields§

§guid: Guid

GUID des Participants.

§protocol_version: ProtocolVersion

Protokoll-Version (typisch 2.5).

§vendor_id: VendorId

Vendor-Identifier.

§default_unicast_locator: Option<Locator>

Default-Unicast-Locator — wohin Peers User-Daten schicken.

§default_multicast_locator: Option<Locator>

Default-Multicast-Locator — User-Daten-Multicast.

§metatraffic_unicast_locator: Option<Locator>

Metatraffic-Unicast-Locator — wohin Peers SEDP-Unicast schicken. Fuer SEDP-Interop (z.B. Cyclone) unverzichtbar: Cyclone routet Publications/Subscriptions an genau diesen Locator nach match.

§metatraffic_multicast_locator: Option<Locator>

Metatraffic-Multicast-Locator — SPDP/SEDP-Multicast-Gruppe.

§domain_id: Option<u32>

DDS-Domain-ID. Cyclone filtert Beacons aus anderen Domains, wenn die PID fehlt, wird i.d.R. Domain 0 angenommen.

§builtin_endpoint_set: u32

Bitmaske der verfuegbaren Builtin-Endpoints (siehe endpoint_flag).

§lease_duration: Duration

Wie lange der Participant ohne erneuten Beacon “lebendig” gilt.

§user_data: Vec<u8>

UserData-QoS am Participant (Spec §2.2.3.1) — opaque sequence, ueber SPDP propagiert.

§properties: WirePropertyList

Property-Liste (PID_PROPERTY_LIST, 0x0059). Traeger fuer Security-Plugin-Klassen, Permissions-Tokens und ZeroDDS- Heterogeneous-Security-Caps (WP 4H-b). Leer bei Peers ohne Security-Announcements (Legacy-Kompatibilitaet).

§identity_token: Option<Vec<u8>>

Roher CDR-encoded IdentityToken-Blob (DDS-Security 1.2 §7.4.1.4 Tab.16, PID_IDENTITY_TOKEN=0x1001). Wird vom DDS-Security-Layer (zerodds_security::token::DataHolder) geparst — RTPS reicht nur die Bytes durch, damit diese Crate transport-frei bleibt. None bei Legacy-Peers ohne Security-Annonce.

§permissions_token: Option<Vec<u8>>

Roher CDR-encoded PermissionsToken-Blob (DDS-Security 1.2 §7.4.1.5 Tab.17, PID_PERMISSIONS_TOKEN=0x1002).

§identity_status_token: Option<Vec<u8>>

Roher CDR-encoded IdentityStatusToken-Blob (DDS-Security 1.2 §7.4.1.6, PID_IDENTITY_STATUS_TOKEN=0x1006). Optional, traegt OCSP-Live-Status.

§sig_algo_info: Option<ParticipantSecurityDigitalSignatureAlgorithmInfo>

ParticipantSecurityDigitalSignatureAlgorithmInfo (DDS-Security 1.2 §7.3.11, PID=0x1010). Optional — None = Spec-Default (RSASSA-PSS + ECDSA-P256).

§kx_algo_info: Option<ParticipantSecurityKeyEstablishmentAlgorithmInfo>

ParticipantSecurityKeyEstablishmentAlgorithmInfo (DDS-Security 1.2 §7.3.12, PID=0x1011). Optional — None = Spec-Default (DHE-MODP-2048 + ECDHE-CEUM-P256).

§sym_cipher_algo_info: Option<ParticipantSecuritySymmetricCipherAlgorithmInfo>

ParticipantSecuritySymmetricCipherAlgorithmInfo (DDS-Security 1.2 §7.3.13, PID=0x1012). Optional — None = Spec-Default (AES128|AES256 supported, AES128 required).

Implementations§

Source§

impl ParticipantBuiltinTopicData

Source

pub fn to_pl_cdr_le(&self) -> Vec<u8>

Encoded zu PL_CDR_LE-Bytes (mit 4-byte Encapsulation-Header). Output ist direkt als serialized_payload einer DATA- Submessage verwendbar.

Source

pub fn from_pl_cdr_le(bytes: &[u8]) -> Result<Self, WireError>

Decoded aus PL_CDR_LE-Bytes (mit Encapsulation-Header).

§Errors

WireError::UnexpectedEof wenn Bytes zu kurz; PIDs ohne Spec-konforme Laenge werden ignoriert (forward-compat).

Trait Implementations§

Source§

impl Clone for ParticipantBuiltinTopicData

Source§

fn clone(&self) -> ParticipantBuiltinTopicData

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ParticipantBuiltinTopicData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for ParticipantBuiltinTopicData

Source§

fn eq(&self, other: &ParticipantBuiltinTopicData) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for ParticipantBuiltinTopicData

Source§

impl StructuralPartialEq for ParticipantBuiltinTopicData

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.