pub struct MatterConfig {
pub port: u16,
pub interface: Option<String>,
pub fabric_id: Option<u64>,
pub vendor_id: u16,
pub allow_unverified_attestation: bool,
pub max_report_interval: u16,
pub discovery_timeout: u16,
pub bluetooth: Option<String>,
pub thread_dataset_url: Option<String>,
pub ota_dir: Option<PathBuf>,
}Expand description
The Matter controller.
Fields§
§port: u16UDP port for Matter.
interface: Option<String>Network interface for mDNS; the first with IPv6 if unset.
fabric_id: Option<u64>Fabric id of a new fabric (random if unset). Ignored once the fabric exists.
vendor_id: u16Vendor id the controller administers nodes as.
allow_unverified_attestation: boolCommission devices whose attestation is not verified. Required for now: verification is not implemented yet (see the README).
max_report_interval: u16Longest silence before a subscription is renewed, seconds.
discovery_timeout: u16How long to look for a device to commission, seconds.
bluetooth: Option<String>The Bluetooth controller for commissioning over BLE: hci0 (the
Linux HCI user channel; BlueZ must not hold it) or tcp:host:port.
thread_dataset_url: Option<String>Where to read the Thread network’s dataset for a Thread device: an
OpenThread border router’s REST API, e.g.
http://127.0.0.1:8081/node/dataset/active.
ota_dir: Option<PathBuf>The directory of Matter OTA image files offered to devices as
software updates; <data.dir>/ota if unset.
Trait Implementations§
Source§impl Clone for MatterConfig
impl Clone for MatterConfig
Source§impl Debug for MatterConfig
impl Debug for MatterConfig
Source§impl Default for MatterConfig
impl Default for MatterConfig
Source§impl<'de> Deserialize<'de> for MatterConfigwhere
MatterConfig: Default,
impl<'de> Deserialize<'de> for MatterConfigwhere
MatterConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for MatterConfig
impl RefUnwindSafe for MatterConfig
impl Send for MatterConfig
impl Sync for MatterConfig
impl Unpin for MatterConfig
impl UnsafeUnpin for MatterConfig
impl UnwindSafe for MatterConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Init<T> for T
impl<T> Init<T> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more