pub struct NocHandler { /* private fields */ }Expand description
The system implementation of a handler for the Node Operational Credentials Matter cluster.
Implementations§
Source§impl NocHandler
impl NocHandler
Sourcepub const fn new(dataver: Dataver) -> NocHandler
pub const fn new(dataver: Dataver) -> NocHandler
Creates a new instance of the NocHandler with the given Dataver.
Sourcepub const fn adapt(self) -> HandlerAdaptor<NocHandler>
pub const fn adapt(self) -> HandlerAdaptor<NocHandler>
Adapt the handler instance to the generic rs-matter Handler trait
Trait Implementations§
Source§impl Clone for NocHandler
impl Clone for NocHandler
Source§fn clone(&self) -> NocHandler
fn clone(&self) -> NocHandler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ClusterHandler for NocHandler
impl ClusterHandler for NocHandler
Source§const CLUSTER: Cluster<'static> = FULL_CLUSTER
const CLUSTER: Cluster<'static> = FULL_CLUSTER
The cluster-metadata corresponding to this handler trait.
fn dataver(&self) -> u32
fn dataver_changed(&self)
fn nocs<P>(
&self,
ctx: impl ReadContext,
builder: ArrayAttributeRead<NOCStructArrayBuilder<P>, NOCStructBuilder<P>>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn fabrics<P>(
&self,
ctx: impl ReadContext,
builder: ArrayAttributeRead<FabricDescriptorStructArrayBuilder<P>, FabricDescriptorStructBuilder<P>>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn supported_fabrics(&self, _ctx: impl ReadContext) -> Result<u8, Error>
fn commissioned_fabrics(&self, ctx: impl ReadContext) -> Result<u8, Error>
fn trusted_root_certificates<P>(
&self,
ctx: impl ReadContext,
builder: ArrayAttributeRead<OctetsArrayBuilder<P>, OctetsBuilder<P>>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn current_fabric_index(&self, ctx: impl ReadContext) -> Result<u8, Error>
fn handle_attestation_request<P>(
&self,
ctx: impl InvokeContext,
request: AttestationRequestRequest<'_>,
response: AttestationResponseBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn handle_certificate_chain_request<P>(
&self,
ctx: impl InvokeContext,
request: CertificateChainRequestRequest<'_>,
response: CertificateChainResponseBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn handle_csr_request<P>(
&self,
ctx: impl InvokeContext,
request: CSRRequestRequest<'_>,
response: CSRResponseBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn handle_add_noc<P>(
&self,
ctx: impl InvokeContext,
request: AddNOCRequest<'_>,
response: NOCResponseBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn handle_update_noc<P>(
&self,
ctx: impl InvokeContext,
request: UpdateNOCRequest<'_>,
response: NOCResponseBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn handle_update_fabric_label<P>(
&self,
ctx: impl InvokeContext,
request: UpdateFabricLabelRequest<'_>,
response: NOCResponseBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn handle_remove_fabric<P>(
&self,
ctx: impl InvokeContext,
request: RemoveFabricRequest<'_>,
response: NOCResponseBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn handle_add_trusted_root_certificate( &self, ctx: impl InvokeContext, request: AddTrustedRootCertificateRequest<'_>, ) -> Result<(), Error>
fn handle_set_vid_verification_statement( &self, ctx: impl InvokeContext, request: SetVIDVerificationStatementRequest<'_>, ) -> Result<(), Error>
fn handle_sign_vid_verification_request<P>(
&self,
ctx: impl InvokeContext,
request: SignVIDVerificationRequestRequest<'_>,
response: SignVIDVerificationResponseBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn lifecycle( &self, _ctx: impl HandlerContext, _op: LifecycleOp, ) -> Result<(), Error>
fn run( &self, _ctx: impl HandlerContext, ) -> impl Future<Output = Result<(), Error>>
Auto Trait Implementations§
impl !Freeze for NocHandler
impl !RefUnwindSafe for NocHandler
impl !Sync for NocHandler
impl Send for NocHandler
impl Unpin for NocHandler
impl UnsafeUnpin for NocHandler
impl UnwindSafe for NocHandler
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
Converts
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> ⓘ
Converts
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 moreSource§impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
impl<T, I> IntoFallibleInit<T> for Iwhere
I: Init<T>,
Source§fn into_fallible<E>(self) -> impl Init<T, E>
fn into_fallible<E>(self) -> impl Init<T, E>
Convert the infallible initializer to a fallible one.
Source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
Source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
Source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.