pub struct ZoneMgmtHandler<H, const NZ: usize, const NV: usize, const NT: usize>where
H: ZoneMgmtHooks<NV>,{ /* private fields */ }Expand description
Handler for the Zone Management cluster (0x0550).
Implementations§
Source§impl<H, const NZ: usize, const NV: usize, const NT: usize> ZoneMgmtHandler<H, NZ, NV, NT>where
H: ZoneMgmtHooks<NV>,
impl<H, const NZ: usize, const NV: usize, const NT: usize> ZoneMgmtHandler<H, NZ, NV, NT>where
H: ZoneMgmtHooks<NV>,
Sourcepub const CLUSTER: Cluster<'static>
pub const CLUSTER: Cluster<'static>
Cluster metadata advertising TWO_DIMENSIONAL_CARTESIAN_ZONE +
USER_DEFINED.
pub const fn new( dataver: Dataver, endpoint_id: u16, config: ZoneMgmtConfig, features: u32, hooks: H, ) -> ZoneMgmtHandler<H, NZ, NV, NT>
pub const fn adapt(self) -> HandlerAsyncAdaptor<ZoneMgmtHandler<H, NZ, NV, NT>>
pub const fn endpoint_id(&self) -> u16
Trait Implementations§
Source§impl<H, const NZ: usize, const NV: usize, const NT: usize> ClusterAsyncHandler for ZoneMgmtHandler<H, NZ, NV, NT>where
H: ZoneMgmtHooks<NV>,
impl<H, const NZ: usize, const NV: usize, const NT: usize> ClusterAsyncHandler for ZoneMgmtHandler<H, NZ, NV, NT>where
H: ZoneMgmtHooks<NV>,
Source§const CLUSTER: Cluster<'static> = Self::CLUSTER
const CLUSTER: Cluster<'static> = Self::CLUSTER
The cluster-metadata corresponding to this handler trait.
fn dataver(&self) -> u32
fn dataver_changed(&self)
async fn max_user_defined_zones( &self, _ctx: impl ReadContext, ) -> Result<u8, Error>
async fn max_zones(&self, _ctx: impl ReadContext) -> Result<u8, Error>
async fn sensitivity_max(&self, _ctx: impl ReadContext) -> Result<u8, Error>
async fn sensitivity(&self, _ctx: impl ReadContext) -> Result<u8, Error>
async fn set_sensitivity( &self, _ctx: impl WriteContext, value: u8, ) -> Result<(), Error>
async fn two_d_cartesian_max<P>(
&self,
_ctx: impl ReadContext,
builder: TwoDCartesianVertexStructBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
async fn zones<P>(
&self,
_ctx: impl ReadContext,
builder: ArrayAttributeRead<ZoneInformationStructArrayBuilder<P>, ZoneInformationStructBuilder<P>>,
) -> Result<P, Error>where
P: TLVBuilderParent,
async fn triggers<P>(
&self,
_ctx: impl ReadContext,
builder: ArrayAttributeRead<ZoneTriggerControlStructArrayBuilder<P>, ZoneTriggerControlStructBuilder<P>>,
) -> Result<P, Error>where
P: TLVBuilderParent,
async fn handle_create_two_d_cartesian_zone<P>(
&self,
ctx: impl InvokeContext,
request: CreateTwoDCartesianZoneRequest<'_>,
response: CreateTwoDCartesianZoneResponseBuilder<P>,
) -> Result<P, Error>where
P: TLVBuilderParent,
async fn handle_update_two_d_cartesian_zone( &self, ctx: impl InvokeContext, request: UpdateTwoDCartesianZoneRequest<'_>, ) -> Result<(), Error>
async fn handle_remove_zone( &self, ctx: impl InvokeContext, request: RemoveZoneRequest<'_>, ) -> Result<(), Error>
async fn handle_create_or_update_trigger( &self, ctx: impl InvokeContext, request: CreateOrUpdateTriggerRequest<'_>, ) -> Result<(), Error>
async fn handle_remove_trigger( &self, ctx: impl InvokeContext, request: RemoveTriggerRequest<'_>, ) -> Result<(), Error>
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<H, const NZ: usize, const NV: usize, const NT: usize> !Freeze for ZoneMgmtHandler<H, NZ, NV, NT>
impl<H, const NZ: usize, const NV: usize, const NT: usize> !RefUnwindSafe for ZoneMgmtHandler<H, NZ, NV, NT>
impl<H, const NZ: usize, const NV: usize, const NT: usize> !Sync for ZoneMgmtHandler<H, NZ, NV, NT>
impl<H, const NZ: usize, const NV: usize, const NT: usize> Send for ZoneMgmtHandler<H, NZ, NV, NT>where
H: Send,
impl<H, const NZ: usize, const NV: usize, const NT: usize> Unpin for ZoneMgmtHandler<H, NZ, NV, NT>where
H: Unpin,
impl<H, const NZ: usize, const NV: usize, const NT: usize> UnsafeUnpin for ZoneMgmtHandler<H, NZ, NV, NT>where
H: UnsafeUnpin,
impl<H, const NZ: usize, const NV: usize, const NT: usize> UnwindSafe for ZoneMgmtHandler<H, NZ, NV, NT>where
H: UnwindSafe,
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.