pub struct MatterControllerBuilder { /* private fields */ }Expand description
Configures and opens a MatterController.
Implementations§
Source§impl MatterControllerBuilder
impl MatterControllerBuilder
Sourcepub fn attestation_trust(self, trust: AttestationTrust) -> Self
pub fn attestation_trust(self, trust: AttestationTrust) -> Self
Set the device-attestation trust material. Required to commission.
Sourcepub fn admin_vendor_id(self, vid: u16) -> Self
pub fn admin_vendor_id(self, vid: u16) -> Self
Override the admin vendor id used in AddNOC (default 0xFFF1).
Sourcepub fn multicast_interface(self, if_index: u32) -> Self
pub fn multicast_interface(self, if_index: u32) -> Self
Set the IPv6 multicast egress interface (an if_nametoindex value)
used for group commands (invoke_group). On a multi-homed host the
kernel default has no route for the admin-local ff35: group address
and group sends fail with “No route to host” — pick the LAN-facing
interface. When unset, the MATTER_MULTICAST_IF env var is honored as
a compat fallback, then the kernel default.
Sourcepub async fn build(self) -> Result<MatterController, Error>
pub async fn build(self) -> Result<MatterController, Error>
Bind the socket + discovery, load persisted state, and spawn the actor.
§Errors
Error::Store / Error::Snapshot on load failure, or
Error::Operational if the socket / mDNS cannot start.
Auto Trait Implementations§
impl !RefUnwindSafe for MatterControllerBuilder
impl !UnwindSafe for MatterControllerBuilder
impl Freeze for MatterControllerBuilder
impl Send for MatterControllerBuilder
impl Sync for MatterControllerBuilder
impl Unpin for MatterControllerBuilder
impl UnsafeUnpin for MatterControllerBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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