pub trait ClusterHandler {
const CLUSTER: Cluster<'static>;
// Required methods
fn dataver(&self) -> u32;
fn dataver_changed(&self);
fn binding<P>(
&self,
ctx: impl ReadContext,
builder: ArrayAttributeRead<TargetStructArrayBuilder<P>, TargetStructBuilder<P>>,
) -> Result<P, Error>
where P: TLVBuilderParent;
fn set_binding(
&self,
ctx: impl WriteContext,
value: ArrayAttributeWrite<TLVContainer<'_, TargetStruct<'_>, ArrayContainer>, TargetStruct<'_>>,
) -> Result<(), Error>;
}Expand description
The handler trait for the cluster.
Required Associated Constants§
Required Methods§
fn dataver(&self) -> u32
fn dataver_changed(&self)
fn binding<P>(
&self,
ctx: impl ReadContext,
builder: ArrayAttributeRead<TargetStructArrayBuilder<P>, TargetStructBuilder<P>>,
) -> Result<P, Error>where
P: TLVBuilderParent,
fn set_binding( &self, ctx: impl WriteContext, value: ArrayAttributeWrite<TLVContainer<'_, TargetStruct<'_>, ArrayContainer>, TargetStruct<'_>>, ) -> Result<(), Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".