pub struct ThirdPartyMessage {
pub vendor: ThirdPartyVendor,
pub payload: Vec<u8>,
pub address: Option<Ipv4Addr>,
}Expand description
A message an application sent to every device, under its own vendor id.
The library reads only the vendor id. What follows is the application’s, and arrives exactly as it was sent.
Fields§
§vendor: ThirdPartyVendorWhich application’s message this is. The library checks none: each application ignores every message whose vendor is not its own.
payload: Vec<u8>The application’s bytes, at most THIRD_PARTY_PAYLOAD_MAX.
address: Option<Ipv4Addr>Where the datagram came from, when the socket said.
Trait Implementations§
Source§impl Clone for ThirdPartyMessage
impl Clone for ThirdPartyMessage
Source§impl Debug for ThirdPartyMessage
impl Debug for ThirdPartyMessage
Source§impl Default for ThirdPartyMessage
impl Default for ThirdPartyMessage
impl Eq for ThirdPartyMessage
Source§impl PartialEq for ThirdPartyMessage
impl PartialEq for ThirdPartyMessage
impl StructuralPartialEq for ThirdPartyMessage
Auto Trait Implementations§
impl Freeze for ThirdPartyMessage
impl RefUnwindSafe for ThirdPartyMessage
impl Send for ThirdPartyMessage
impl Sync for ThirdPartyMessage
impl Unpin for ThirdPartyMessage
impl UnsafeUnpin for ThirdPartyMessage
impl UnwindSafe for ThirdPartyMessage
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