pub struct Config {
pub state_dir: PathBuf,
pub port: u16,
pub interface: Option<String>,
pub fabric_id: Option<u64>,
pub ca: CaChoice,
pub vendor_id: u16,
pub allow_unverified_attestation: bool,
pub bluetooth: Option<String>,
pub bluetooth_random_address: bool,
pub max_report_interval: u16,
pub ota_dir: PathBuf,
}Expand description
How the controller runs.
Fields§
§state_dir: PathBufWhere the CA, the controller’s identity and the node store live.
port: u16UDP port for Matter traffic.
interface: Option<String>Network interface for mDNS (DNS-SD); the first with IPv6 if None.
fabric_id: Option<u64>The fabric id of a new fabric; random if None. Ignored once the
fabric exists.
ca: CaChoiceWhere the fabric’s certificates come from.
vendor_id: u16Vendor id the controller administers nodes as (0xFFF1 is the CSA’s
test vendor id, for uncertified controllers).
allow_unverified_attestation: boolCommission devices whose attestation has not been verified.
rs-matter does not verify device attestation yet (see
docs/design.md), so commissioning refuses every device unless this is
set.
bluetooth: Option<String>The Bluetooth controller for commissioning over BLE: hci0 (the Linux
HCI user channel; BlueZ must not be using it) or tcp:host:port (H4
over TCP). Needs the ble feature.
bluetooth_random_address: boolRun Bluetooth on a static random address instead of the controller’s public one (simulated controllers such as Bumble’s route only those).
max_report_interval: u16The longest a subscription may stay silent before it is renewed, seconds (the device may agree to less).
ota_dir: PathBufThe directory of Matter OTA image files offered to the nodes; the newest that applies to a node is the update it is offered.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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> 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