pub struct DeviceInfo {
pub ip: Ipv4Addr,
pub mac: [u8; 6],
pub model: Option<String>,
pub manufacturer: Option<String>,
pub version: Option<String>,
pub serial: Option<String>,
pub user_name: Option<String>,
}Expand description
Information returned by GVCP discovery packets.
Fields§
§ip: Ipv4Addr§mac: [u8; 6]§model: Option<String>§manufacturer: Option<String>§version: Option<String>Device version string (Discovery ACK offset 136).
serial: Option<String>Serial number as printed on the device (Discovery ACK offset 216).
user_name: Option<String>User-programmable device name (Discovery ACK offset 232).
Implementations§
Source§impl DeviceInfo
impl DeviceInfo
Trait Implementations§
Source§impl Clone for DeviceInfo
impl Clone for DeviceInfo
Source§fn clone(&self) -> DeviceInfo
fn clone(&self) -> DeviceInfo
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 DeviceInfo
impl Debug for DeviceInfo
Source§impl PartialEq for DeviceInfo
impl PartialEq for DeviceInfo
Source§fn eq(&self, other: &DeviceInfo) -> bool
fn eq(&self, other: &DeviceInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DeviceInfo
impl StructuralPartialEq for DeviceInfo
Auto Trait Implementations§
impl Freeze for DeviceInfo
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnsafeUnpin for DeviceInfo
impl UnwindSafe for DeviceInfo
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