pub struct ExternalDevice {
pub ip_address: Option<IpAddr>,
pub mac_address: Option<[u8; 6]>,
pub hostname: Option<String>,
pub usb_address: Option<String>,
pub hardware_name: Option<String>,
pub device_index: Option<u16>,
pub opaque_data: Box<dyn Any + Send>,
}Expand description
Device info returned by external discoverers.
This struct contains the common fields that DacDiscovery uses to create
a DiscoveredDevice. The opaque_data field stores protocol-specific
connection information that will be passed back to connect().
Fields§
§ip_address: Option<IpAddr>IP address for network devices.
mac_address: Option<[u8; 6]>MAC address if available.
hostname: Option<String>Hostname if available.
usb_address: Option<String>USB address (e.g., “bus:device”) for USB devices.
hardware_name: Option<String>Hardware/device name if available.
device_index: Option<u16>Disambiguation index when multiple identical devices are present.
opaque_data: Box<dyn Any + Send>Opaque data passed back to connect().
Store whatever your protocol needs to establish a connection.
Implementations§
Auto Trait Implementations§
impl Freeze for ExternalDevice
impl !RefUnwindSafe for ExternalDevice
impl Send for ExternalDevice
impl !Sync for ExternalDevice
impl Unpin for ExternalDevice
impl UnsafeUnpin for ExternalDevice
impl !UnwindSafe for ExternalDevice
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