Skip to main content

ClusterAsyncHandler

Trait ClusterAsyncHandler 

Source
pub trait ClusterAsyncHandler {
    const CLUSTER: Cluster<'static>;
Show 13 methods // Required methods fn dataver(&self) -> u32; fn dataver_changed(&self); async fn handle_change_channel<P>( &self, ctx: impl InvokeContext, request: ChangeChannelRequest<'_>, response: ChangeChannelResponseBuilder<P>, ) -> Result<P, Error> where P: TLVBuilderParent; async fn handle_change_channel_by_number( &self, ctx: impl InvokeContext, request: ChangeChannelByNumberRequest<'_>, ) -> Result<(), Error>; async fn handle_skip_channel( &self, ctx: impl InvokeContext, request: SkipChannelRequest<'_>, ) -> Result<(), Error>; async fn handle_get_program_guide<P>( &self, ctx: impl InvokeContext, request: GetProgramGuideRequest<'_>, response: ProgramGuideResponseBuilder<P>, ) -> Result<P, Error> where P: TLVBuilderParent; async fn handle_record_program( &self, ctx: impl InvokeContext, request: RecordProgramRequest<'_>, ) -> Result<(), Error>; async fn handle_cancel_record_program( &self, ctx: impl InvokeContext, request: CancelRecordProgramRequest<'_>, ) -> Result<(), Error>; // Provided methods fn lifecycle( &self, _ctx: impl HandlerContext, _op: LifecycleOp, ) -> Result<(), Error> { ... } fn run( &self, _ctx: impl HandlerContext, ) -> impl Future<Output = Result<(), Error>> { ... } fn channel_list<P>( &self, ctx: impl ReadContext, builder: ArrayAttributeRead<ChannelInfoStructArrayBuilder<P>, ChannelInfoStructBuilder<P>>, ) -> impl Future<Output = Result<P, Error>> where P: TLVBuilderParent { ... } fn lineup<P>( &self, ctx: impl ReadContext, builder: NullableBuilder<P, LineupInfoStructBuilder<P>>, ) -> impl Future<Output = Result<P, Error>> where P: TLVBuilderParent { ... } fn current_channel<P>( &self, ctx: impl ReadContext, builder: NullableBuilder<P, ChannelInfoStructBuilder<P>>, ) -> impl Future<Output = Result<P, Error>> where P: TLVBuilderParent { ... }
}
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 handle_change_channel<P>( &self, ctx: impl InvokeContext, request: ChangeChannelRequest<'_>, response: ChangeChannelResponseBuilder<P>, ) -> Result<P, Error>

Source

async fn handle_change_channel_by_number( &self, ctx: impl InvokeContext, request: ChangeChannelByNumberRequest<'_>, ) -> Result<(), Error>

Source

async fn handle_skip_channel( &self, ctx: impl InvokeContext, request: SkipChannelRequest<'_>, ) -> Result<(), Error>

Source

async fn handle_get_program_guide<P>( &self, ctx: impl InvokeContext, request: GetProgramGuideRequest<'_>, response: ProgramGuideResponseBuilder<P>, ) -> Result<P, Error>

Source

async fn handle_record_program( &self, ctx: impl InvokeContext, request: RecordProgramRequest<'_>, ) -> Result<(), Error>

Source

async fn handle_cancel_record_program( &self, ctx: impl InvokeContext, request: CancelRecordProgramRequest<'_>, ) -> Result<(), Error>

Provided Methods§

Source

fn lifecycle( &self, _ctx: impl HandlerContext, _op: LifecycleOp, ) -> Result<(), Error>

Source

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

Source

fn channel_list<P>( &self, ctx: impl ReadContext, builder: ArrayAttributeRead<ChannelInfoStructArrayBuilder<P>, ChannelInfoStructBuilder<P>>, ) -> impl Future<Output = Result<P, Error>>

Source

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

Source

fn current_channel<P>( &self, ctx: impl ReadContext, builder: NullableBuilder<P, ChannelInfoStructBuilder<P>>, ) -> impl Future<Output = Result<P, 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 lifecycle( &self, ctx: impl HandlerContext, op: LifecycleOp, ) -> Result<(), Error>

Source§

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

Source§

fn channel_list<P>( &self, ctx: impl ReadContext, builder: ArrayAttributeRead<ChannelInfoStructArrayBuilder<P>, ChannelInfoStructBuilder<P>>, ) -> impl Future<Output = Result<P, Error>>

Source§

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

Source§

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

Source§

fn handle_change_channel<P>( &self, ctx: impl InvokeContext, request: ChangeChannelRequest<'_>, response: ChangeChannelResponseBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source§

fn handle_change_channel_by_number( &self, ctx: impl InvokeContext, request: ChangeChannelByNumberRequest<'_>, ) -> impl Future<Output = Result<(), Error>>

Source§

fn handle_skip_channel( &self, ctx: impl InvokeContext, request: SkipChannelRequest<'_>, ) -> impl Future<Output = Result<(), Error>>

Source§

fn handle_get_program_guide<P>( &self, ctx: impl InvokeContext, request: GetProgramGuideRequest<'_>, response: ProgramGuideResponseBuilder<P>, ) -> impl Future<Output = Result<P, Error>>

Source§

fn handle_record_program( &self, ctx: impl InvokeContext, request: RecordProgramRequest<'_>, ) -> impl Future<Output = Result<(), Error>>

Source§

fn handle_cancel_record_program( &self, ctx: impl InvokeContext, request: CancelRecordProgramRequest<'_>, ) -> impl Future<Output = Result<(), Error>>

Implementors§