Skip to main content

ClusterAsyncHandler

Trait ClusterAsyncHandler 

Source
pub trait ClusterAsyncHandler {
    const CLUSTER: Cluster<'static>;
Show 31 methods // Required methods fn dataver(&self) -> u32; fn dataver_changed(&self); async fn data_model_revision( &self, ctx: impl ReadContext, ) -> Result<u16, Error>; async fn vendor_name<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> Result<P, Error> where P: TLVBuilderParent; async fn vendor_id(&self, ctx: impl ReadContext) -> Result<u16, Error>; async fn product_name<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> Result<P, Error> where P: TLVBuilderParent; async fn product_id(&self, ctx: impl ReadContext) -> Result<u16, Error>; async fn node_label<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> Result<P, Error> where P: TLVBuilderParent; async fn location<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> Result<P, Error> where P: TLVBuilderParent; async fn hardware_version( &self, ctx: impl ReadContext, ) -> Result<u16, Error>; async fn hardware_version_string<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> Result<P, Error> where P: TLVBuilderParent; async fn software_version( &self, ctx: impl ReadContext, ) -> Result<u32, Error>; async fn software_version_string<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> Result<P, Error> where P: TLVBuilderParent; async fn unique_id<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> Result<P, Error> where P: TLVBuilderParent; async fn capability_minima<P>( &self, ctx: impl ReadContext, builder: CapabilityMinimaStructBuilder<P>, ) -> Result<P, Error> where P: TLVBuilderParent; async fn specification_version( &self, ctx: impl ReadContext, ) -> Result<u32, Error>; async fn max_paths_per_invoke( &self, ctx: impl ReadContext, ) -> Result<u16, Error>; async fn configuration_version( &self, ctx: impl ReadContext, ) -> Result<u32, Error>; async fn set_node_label( &self, ctx: impl WriteContext, value: &str, ) -> Result<(), Error>; async fn set_location( &self, ctx: impl WriteContext, value: &str, ) -> Result<(), Error>; async fn handle_mfg_specific_ping( &self, ctx: impl InvokeContext, ) -> Result<(), Error>; // Provided methods fn run( &self, _ctx: impl HandlerContext, ) -> impl Future<Output = Result<(), Error>> { ... } fn manufacturing_date<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> impl Future<Output = Result<P, Error>> where P: TLVBuilderParent { ... } fn part_number<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> impl Future<Output = Result<P, Error>> where P: TLVBuilderParent { ... } fn product_url<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> impl Future<Output = Result<P, Error>> where P: TLVBuilderParent { ... } fn product_label<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> impl Future<Output = Result<P, Error>> where P: TLVBuilderParent { ... } fn serial_number<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> impl Future<Output = Result<P, Error>> where P: TLVBuilderParent { ... } fn local_config_disabled( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<bool, Error>> { ... } fn reachable( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<bool, Error>> { ... } fn product_appearance<P>( &self, ctx: impl ReadContext, builder: ProductAppearanceStructBuilder<P>, ) -> impl Future<Output = Result<P, Error>> where P: TLVBuilderParent { ... } fn set_local_config_disabled( &self, ctx: impl WriteContext, value: bool, ) -> impl Future<Output = Result<(), Error>> { ... }
}
Expand description

The handler trait for the cluster.

Required Associated Constants§

Source

const CLUSTER: Cluster<'static>

The cluster-metadata corresponding to this handler trait.

Required Methods§

Source

fn dataver(&self) -> u32

Source

fn dataver_changed(&self)

Source

async fn data_model_revision(&self, ctx: impl ReadContext) -> Result<u16, Error>

Source

async fn vendor_name<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> Result<P, Error>

Source

async fn vendor_id(&self, ctx: impl ReadContext) -> Result<u16, Error>

Source

async fn product_name<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> Result<P, Error>

Source

async fn product_id(&self, ctx: impl ReadContext) -> Result<u16, Error>

Source

async fn node_label<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> Result<P, Error>

Source

async fn location<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> Result<P, Error>

Source

async fn hardware_version(&self, ctx: impl ReadContext) -> Result<u16, Error>

Source

async fn hardware_version_string<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> Result<P, Error>

Source

async fn software_version(&self, ctx: impl ReadContext) -> Result<u32, Error>

Source

async fn software_version_string<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> Result<P, Error>

Source

async fn unique_id<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> Result<P, Error>

Source

async fn capability_minima<P>( &self, ctx: impl ReadContext, builder: CapabilityMinimaStructBuilder<P>, ) -> Result<P, Error>

Source

async fn specification_version( &self, ctx: impl ReadContext, ) -> Result<u32, Error>

Source

async fn max_paths_per_invoke( &self, ctx: impl ReadContext, ) -> Result<u16, Error>

Source

async fn configuration_version( &self, ctx: impl ReadContext, ) -> Result<u32, Error>

Source

async fn set_node_label( &self, ctx: impl WriteContext, value: &str, ) -> Result<(), Error>

Source

async fn set_location( &self, ctx: impl WriteContext, value: &str, ) -> Result<(), Error>

Source

async fn handle_mfg_specific_ping( &self, ctx: impl InvokeContext, ) -> Result<(), Error>

Provided Methods§

Source

fn run( &self, _ctx: impl HandlerContext, ) -> impl Future<Output = Result<(), Error>>

Source

fn manufacturing_date<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source

fn part_number<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source

fn product_url<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source

fn product_label<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source

fn serial_number<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source

fn local_config_disabled( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<bool, Error>>

Source

fn reachable( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<bool, Error>>

Source

fn product_appearance<P>( &self, ctx: impl ReadContext, builder: ProductAppearanceStructBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source

fn set_local_config_disabled( &self, ctx: impl WriteContext, value: bool, ) -> impl Future<Output = Result<(), Error>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> ClusterAsyncHandler for &T

Source§

const CLUSTER: Cluster<'static> = T::CLUSTER

Source§

fn dataver(&self) -> u32

Source§

fn dataver_changed(&self)

Source§

fn run( &self, ctx: impl HandlerContext, ) -> impl Future<Output = Result<(), Error>>

Source§

fn data_model_revision( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u16, Error>>

Source§

fn vendor_name<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source§

fn vendor_id( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u16, Error>>

Source§

fn product_name<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source§

fn product_id( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u16, Error>>

Source§

fn node_label<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source§

fn location<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source§

fn hardware_version( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u16, Error>>

Source§

fn hardware_version_string<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source§

fn software_version( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>

Source§

fn software_version_string<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source§

fn manufacturing_date<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source§

fn part_number<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source§

fn product_url<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source§

fn product_label<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source§

fn serial_number<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source§

fn local_config_disabled( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<bool, Error>>

Source§

fn reachable( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<bool, Error>>

Source§

fn unique_id<P>( &self, ctx: impl ReadContext, builder: Utf8StrBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source§

fn capability_minima<P>( &self, ctx: impl ReadContext, builder: CapabilityMinimaStructBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source§

fn product_appearance<P>( &self, ctx: impl ReadContext, builder: ProductAppearanceStructBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source§

fn specification_version( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>

Source§

fn max_paths_per_invoke( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u16, Error>>

Source§

fn configuration_version( &self, ctx: impl ReadContext, ) -> impl Future<Output = Result<u32, Error>>

Source§

fn set_node_label( &self, ctx: impl WriteContext, value: &str, ) -> impl Future<Output = Result<(), Error>>

Source§

fn set_location( &self, ctx: impl WriteContext, value: &str, ) -> impl Future<Output = Result<(), Error>>

Source§

fn set_local_config_disabled( &self, ctx: impl WriteContext, value: bool, ) -> impl Future<Output = Result<(), Error>>

Source§

fn handle_mfg_specific_ping( &self, ctx: impl InvokeContext, ) -> impl Future<Output = Result<(), Error>>

Implementors§