pub struct CommissionerControl<'a, H: CommissionerControlHooks, const N: usize = 4> { /* private fields */ }Expand description
Commissioner Control over a node that can commission others.
Implementations§
Source§impl<'a, H: CommissionerControlHooks, const N: usize> CommissionerControl<'a, H, N>
impl<'a, H: CommissionerControlHooks, const N: usize> CommissionerControl<'a, H, N>
Sourcepub fn new(hooks: &'a H, categories: SupportedDeviceCategoryBitmap) -> Self
pub fn new(hooks: &'a H, categories: SupportedDeviceCategoryBitmap) -> Self
A cluster over hooks, advertising categories.
Sourcepub fn conforming(
feature_map: u32,
optional: &Optional<'_>,
) -> Result<Conforming<1, 2, 1, 1>>
pub fn conforming( feature_map: u32, optional: &Optional<'_>, ) -> Result<Conforming<1, 2, 1, 1>>
The descriptor for an instance, derived from the specification’s tables.
Sourcepub const fn categories(&self) -> SupportedDeviceCategoryBitmap
pub const fn categories(&self) -> SupportedDeviceCategoryBitmap
SupportedDeviceCategories (§11.26.5.1).
Sourcepub fn pending(&self) -> Ref<'_, Vec<Request, N>>
pub fn pending(&self) -> Ref<'_, Vec<Request, N>>
The requests this server has not yet answered.
Sourcepub fn decide(
&self,
request_id: u64,
client: NodeId,
decision: Decision,
) -> bool
pub fn decide( &self, request_id: u64, client: NodeId, decision: Decision, ) -> bool
Records the server’s decision about a request, producing §11.26.7.1’s event.
Separate from the command because the decision may take a person: §11.26.6.1 is explicit that the two-step flow exists “to provide the server time for interacting with a user”.
Sourcepub fn take_events(&self) -> Vec<CommissioningRequestResult, N>
pub fn take_events(&self) -> Vec<CommissioningRequestResult, N>
Takes the event records the cluster has produced.
Sourcepub fn reverse_pending(&self) -> bool
pub fn reverse_pending(&self) -> bool
Whether the last CommissionNode asked the caller to send a
ReverseOpenCommissioningWindow back to the client.
§11.26.6’s command table marks that one server ⇒ client: it is not a response, it is
a command the server invokes on the client over the same CASE session. So the interaction
model’s response machinery cannot carry it, and the caller sends it — which is also why
it is the one command here this cluster does not answer with itself.
Trait Implementations§
Source§impl<H: CommissionerControlHooks, const N: usize> Cluster for CommissionerControl<'_, H, N>
So a tuple of clusters can dispatch to it by id.
impl<H: CommissionerControlHooks, const N: usize> Cluster for CommissionerControl<'_, H, N>
So a tuple of clusters can dispatch to it by id.