pub struct InfoSourceSubmessage {
pub unused: u32,
pub protocol_version: ProtocolVersion,
pub vendor_id: VendorId,
pub guid_prefix: GuidPrefix,
}Expand description
InfoSource-Submessage (§8.3.8.9.4). Setzt im ReceiverState
sourceProtocolVersion, sourceVendorId, sourceGuidPrefix neu —
alle nachfolgenden Submessages werden dieser Quelle zugeordnet (nicht
dem Datagram-Header).
Wire-Layout (Body, 20 byte):
- unused (4 byte, in der Spec “Long unused”)
- ProtocolVersion (2 byte)
- VendorId (2 byte)
- GuidPrefix (12 byte)
Fields§
§unused: u32Reservierte 4 Byte (Spec sagt: muss vom Sender 0 sein, vom Receiver ignoriert).
protocol_version: ProtocolVersionSource-ProtocolVersion (z.B. 2.5).
vendor_id: VendorIdSource-VendorId (Hersteller-Kennung).
guid_prefix: GuidPrefixSource-GuidPrefix (12 byte).
Implementations§
Source§impl InfoSourceSubmessage
impl InfoSourceSubmessage
Trait Implementations§
Source§impl Clone for InfoSourceSubmessage
impl Clone for InfoSourceSubmessage
Source§fn clone(&self) -> InfoSourceSubmessage
fn clone(&self) -> InfoSourceSubmessage
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 InfoSourceSubmessage
impl Debug for InfoSourceSubmessage
Source§impl PartialEq for InfoSourceSubmessage
impl PartialEq for InfoSourceSubmessage
Source§fn eq(&self, other: &InfoSourceSubmessage) -> bool
fn eq(&self, other: &InfoSourceSubmessage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for InfoSourceSubmessage
impl Eq for InfoSourceSubmessage
impl StructuralPartialEq for InfoSourceSubmessage
Auto Trait Implementations§
impl Freeze for InfoSourceSubmessage
impl RefUnwindSafe for InfoSourceSubmessage
impl Send for InfoSourceSubmessage
impl Sync for InfoSourceSubmessage
impl Unpin for InfoSourceSubmessage
impl UnsafeUnpin for InfoSourceSubmessage
impl UnwindSafe for InfoSourceSubmessage
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