pub struct DeviceInfo {
pub product_name: String,
pub manufacturer: String,
pub software_version: Option<String>,
pub mac_address: Option<String>,
}Expand description
What the client announces about the device it runs on.
The server shows these values to the operator, so they name the hardware rather than the protocol: a product name and a manufacturer are always sent, and the software version and MAC address are sent when the host knows them. The fields are plain text; the crate sends them as the host provides them, so their content and length belong to the host.
Fields§
§product_name: StringDevice model or product name.
manufacturer: StringDevice manufacturer.
software_version: Option<String>Software version of the host application, not the protocol version.
mac_address: Option<String>Network interface MAC address as lowercase colon-separated bytes.
Trait Implementations§
Source§impl Clone for DeviceInfo
impl Clone for DeviceInfo
Source§impl Debug for DeviceInfo
impl Debug for DeviceInfo
Source§impl Default for DeviceInfo
impl Default for DeviceInfo
impl Eq for DeviceInfo
Source§impl PartialEq for DeviceInfo
impl PartialEq for DeviceInfo
impl StructuralPartialEq for DeviceInfo
Auto Trait Implementations§
impl Forget for DeviceInfo
impl Freeze for DeviceInfo
impl Move 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