pub struct DeviceConfig {Show 17 fields
pub pin: u32,
pub discriminator: u16,
pub listen_address: String,
pub vendor_id: u16,
pub product_id: u16,
pub dac_cert_path: String,
pub pai_cert_path: String,
pub dac_key_path: String,
pub hostname: String,
pub state_dir: Option<String>,
pub vendor_name: String,
pub product_name: String,
pub hardware_version: u16,
pub software_version: u32,
pub serial_number: String,
pub unique_id: String,
pub advertise_addresses: Option<Vec<IpAddr>>,
}Fields§
§pin: u32§discriminator: u16§listen_address: String§vendor_id: u16§product_id: u16§dac_cert_path: String§pai_cert_path: String§dac_key_path: String§hostname: String§state_dir: Option<String>If Some, load/save commissioned state from this directory.
vendor_name: String§product_name: String§hardware_version: u16§software_version: u32§serial_number: String§unique_id: String§advertise_addresses: Option<Vec<IpAddr>>IP addresses to advertise in mDNS A/AAAA records.
When None, all local non-loopback addresses are advertised automatically.
Each registered service (commissionable and per-fabric operational) will use these IPs.
Implementations§
Trait Implementations§
Source§impl Clone for DeviceConfig
impl Clone for DeviceConfig
Source§fn clone(&self) -> DeviceConfig
fn clone(&self) -> DeviceConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DeviceConfig
impl RefUnwindSafe for DeviceConfig
impl Send for DeviceConfig
impl Sync for DeviceConfig
impl Unpin for DeviceConfig
impl UnwindSafe for DeviceConfig
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