pub struct HandlerAsyncAdaptor<T>(pub T);Expand description
The handler adaptor for the cluster-specific handler. This adaptor implements the generic rs-matter handler trait.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T> AsyncHandler for HandlerAsyncAdaptor<T>where
T: ClusterAsyncHandler,
impl<T> AsyncHandler for HandlerAsyncAdaptor<T>where
T: ClusterAsyncHandler,
Source§async fn read(
&self,
ctx: impl ReadContext,
reply: impl ReadReply,
) -> Result<(), Error>
async fn read( &self, ctx: impl ReadContext, reply: impl ReadReply, ) -> Result<(), Error>
Read from the requested attribute and encode the result using the provided reply type.
Source§async fn write(&self, ctx: impl WriteContext) -> Result<(), Error>
async fn write(&self, ctx: impl WriteContext) -> Result<(), Error>
Write into the requested attribute using the provided data. Read more
Source§async fn invoke(
&self,
ctx: impl InvokeContext,
reply: impl InvokeReply,
) -> Result<(), Error>
async fn invoke( &self, ctx: impl InvokeContext, reply: impl InvokeReply, ) -> Result<(), Error>
Invoke the requested command with the provided data and encode the result using the provided reply type. Read more
Source§fn bump_dataver(&self, ctx: impl MatchContext)
fn bump_dataver(&self, ctx: impl MatchContext)
Bump the per-cluster
Dataver for the cluster handler matching
the supplied context endpoint_id / cluster_id.Source§fn lifecycle(
&self,
ctx: impl HandlerContext,
op: LifecycleOp,
) -> Result<(), Error>
fn lifecycle( &self, ctx: impl HandlerContext, op: LifecycleOp, ) -> Result<(), Error>
Process a lifecycle operation (
LifecycleOp). Read moreSource§fn run(
&self,
ctx: impl HandlerContext,
) -> impl Future<Output = Result<(), Error>>
fn run( &self, ctx: impl HandlerContext, ) -> impl Future<Output = Result<(), Error>>
A hook (a scheduling facility) for placing handler-impl-specific code that needs to run
asynchronously - forever and in the “background”.
Source§fn read_awaits(&self, _ctx: impl ReadContext) -> bool
fn read_awaits(&self, _ctx: impl ReadContext) -> bool
Provide information whether the handler will internally await while reading
the current value of the provided attribute. Read more
Source§fn write_awaits(&self, _ctx: impl WriteContext) -> bool
fn write_awaits(&self, _ctx: impl WriteContext) -> bool
Provide information whether the handler will internally await while updating
the value of the provided attribute. Read more
Source§fn invoke_awaits(&self, _ctx: impl InvokeContext) -> bool
fn invoke_awaits(&self, _ctx: impl InvokeContext) -> bool
Provide information whether the handler will internally await while invoking
the provided command. Read more
Source§impl<T> Clone for HandlerAsyncAdaptor<T>where
T: Clone,
impl<T> Clone for HandlerAsyncAdaptor<T>where
T: Clone,
Source§fn clone(&self) -> HandlerAsyncAdaptor<T>
fn clone(&self) -> HandlerAsyncAdaptor<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T> Copy for HandlerAsyncAdaptor<T>where
T: Copy,
Source§impl<T> Debug for HandlerAsyncAdaptor<T>where
T: Debug,
impl<T> Debug for HandlerAsyncAdaptor<T>where
T: Debug,
impl<T> Eq for HandlerAsyncAdaptor<T>where
T: Eq,
Source§impl<T> Hash for HandlerAsyncAdaptor<T>where
T: Hash,
impl<T> Hash for HandlerAsyncAdaptor<T>where
T: Hash,
Source§impl<T> PartialEq for HandlerAsyncAdaptor<T>where
T: PartialEq,
impl<T> PartialEq for HandlerAsyncAdaptor<T>where
T: PartialEq,
impl<T> StructuralPartialEq for HandlerAsyncAdaptor<T>where
T: PartialEq,
Auto Trait Implementations§
impl<T> Freeze for HandlerAsyncAdaptor<T>where
T: Freeze,
impl<T> RefUnwindSafe for HandlerAsyncAdaptor<T>where
T: RefUnwindSafe,
impl<T> Send for HandlerAsyncAdaptor<T>where
T: Send,
impl<T> Sync for HandlerAsyncAdaptor<T>where
T: Sync,
impl<T> Unpin for HandlerAsyncAdaptor<T>where
T: Unpin,
impl<T> UnsafeUnpin for HandlerAsyncAdaptor<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for HandlerAsyncAdaptor<T>where
T: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.