pub struct GenCommHandler<'a> { /* private fields */ }Expand description
The system implementation of a handler for the General Commissioning Matter cluster.
Implementations§
Source§impl<'a> GenCommHandler<'a>
impl<'a> GenCommHandler<'a>
Sourcepub const fn new(
dataver: Dataver,
commissioning_policy: &'a dyn CommPolicy,
) -> GenCommHandler<'a>
pub const fn new( dataver: Dataver, commissioning_policy: &'a dyn CommPolicy, ) -> GenCommHandler<'a>
Create a new instance of GenCommHandler with the given Dataver and CommissioningPolicy.
Sourcepub const fn adapt(self) -> HandlerAdaptor<GenCommHandler<'a>>
pub const fn adapt(self) -> HandlerAdaptor<GenCommHandler<'a>>
Adapt the handler instance to the generic rs-matter Handler trait
Trait Implementations§
Source§impl ClusterHandler for GenCommHandler<'_>
impl ClusterHandler for GenCommHandler<'_>
fn dataver(&self) -> u32
fn dataver_changed(&self)
fn basic_commissioning_info<P>(
&self,
_ctx: impl ReadContext,
builder: BasicCommissioningInfoBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn regulatory_config( &self, ctx: impl ReadContext, ) -> Result<RegulatoryLocationTypeEnum, Error>
fn location_capability( &self, _ctx: impl ReadContext, ) -> Result<RegulatoryLocationTypeEnum, Error>
fn supports_concurrent_connection( &self, _ctx: impl ReadContext, ) -> Result<bool, Error>
fn recovery_identifier<P>(
&self,
ctx: impl ReadContext,
builder: OctetsBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn network_recovery_reason( &self, _ctx: impl ReadContext, ) -> Result<Maybe<NetworkRecoveryReasonEnum, AsNullable>, Error>
fn handle_arm_fail_safe<P>(
&self,
ctx: impl InvokeContext,
request: ArmFailSafeRequest<'_>,
response: ArmFailSafeResponseBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn handle_set_regulatory_config<P>(
&self,
ctx: impl InvokeContext,
request: SetRegulatoryConfigRequest<'_>,
response: SetRegulatoryConfigResponseBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn handle_commissioning_complete<P>(
&self,
ctx: impl InvokeContext,
response: CommissioningCompleteResponseBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn handle_set_tc_acknowledgements<P>(
&self,
_ctx: impl InvokeContext,
_request: SetTCAcknowledgementsRequest<'_>,
_response: SetTCAcknowledgementsResponseBuilder<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>>
fn tc_accepted_version(&self, ctx: impl ReadContext) -> Result<u16, Error>
fn tc_min_required_version(&self, ctx: impl ReadContext) -> Result<u16, Error>
fn tc_acknowledgements(&self, ctx: impl ReadContext) -> Result<u16, Error>
fn tc_acknowledgements_required( &self, ctx: impl ReadContext, ) -> Result<bool, Error>
fn tc_update_deadline( &self, ctx: impl ReadContext, ) -> Result<Maybe<u32, AsNullable>, Error>
fn is_commissioning_without_power( &self, ctx: impl ReadContext, ) -> Result<bool, Error>
Auto Trait Implementations§
impl<'a> !Freeze for GenCommHandler<'a>
impl<'a> !RefUnwindSafe for GenCommHandler<'a>
impl<'a> !Send for GenCommHandler<'a>
impl<'a> !Sync for GenCommHandler<'a>
impl<'a> !UnwindSafe for GenCommHandler<'a>
impl<'a> Unpin for GenCommHandler<'a>
impl<'a> UnsafeUnpin for GenCommHandler<'a>
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> 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.