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). Resets sourceProtocolVersion,
sourceVendorId, sourceGuidPrefix in the ReceiverState — all
subsequent submessages are attributed to this source (not the
datagram header).
Wire layout (body, 20 byte):
- unused (4 byte, “Long unused” in the spec)
- ProtocolVersion (2 byte)
- VendorId (2 byte)
- GuidPrefix (12 byte)
Fields§
§unused: u32Reserved 4 byte (spec says: must be 0 from the sender, ignored by the receiver).
protocol_version: ProtocolVersionSource ProtocolVersion (e.g. 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 moreimpl Copy for InfoSourceSubmessage
Source§impl Debug for InfoSourceSubmessage
impl Debug for InfoSourceSubmessage
impl Eq for InfoSourceSubmessage
Source§impl PartialEq for InfoSourceSubmessage
impl PartialEq 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