pub struct HandlerInvoker<'a, 'b, C> { /* private fields */ }Implementations§
Source§impl<'a, 'b, C> HandlerInvoker<'a, 'b, C>where
C: HandlerContext,
impl<'a, 'b, C> HandlerInvoker<'a, 'b, C>where
C: HandlerContext,
pub const fn new( exchange: &'b mut Exchange<'a>, context: C, ) -> HandlerInvoker<'a, 'b, C>
pub fn exchange(&mut self) -> &mut Exchange<'a>
pub async fn process_read( &mut self, item: &Result<AttrDetails, AttrStatus>, tw: &mut WriteBuf<'_>, ) -> Result<(), Error>
pub async fn read( &mut self, attr: &AttrDetails, tw: &mut WriteBuf<'_>, ) -> Result<(), Error>
pub async fn process_write( &mut self, item: &Result<(AttrDetails, TLVElement<'_>), AttrStatus>, tw: &mut WriteBuf<'_>, ) -> Result<(), Error>
pub async fn write( &mut self, attr: &AttrDetails, data: &TLVElement<'_>, ) -> Result<(), Error>
Sourcepub async fn process_invoke(
&mut self,
item: &Result<(CmdDetails, TLVElement<'_>), CmdStatus>,
tw: &mut WriteBuf<'_>,
) -> Result<bool, Error>
pub async fn process_invoke( &mut self, item: &Result<(CmdDetails, TLVElement<'_>), CmdStatus>, tw: &mut WriteBuf<'_>, ) -> Result<bool, Error>
Process one expanded invoke item.
Returns whether the item was successfully invoked on its handler (used by the Groupcast testing mode to report group-invoke outcomes).
pub async fn invoke( &mut self, cmd: &CmdDetails, data: &TLVElement<'_>, tw: &mut WriteBuf<'_>, ) -> Result<(), Error>
Auto Trait Implementations§
impl<'a, 'b, C> !RefUnwindSafe for HandlerInvoker<'a, 'b, C>
impl<'a, 'b, C> !Send for HandlerInvoker<'a, 'b, C>
impl<'a, 'b, C> !Sync for HandlerInvoker<'a, 'b, C>
impl<'a, 'b, C> !UnwindSafe for HandlerInvoker<'a, 'b, C>
impl<'a, 'b, C> Freeze for HandlerInvoker<'a, 'b, C>where
C: Freeze,
impl<'a, 'b, C> Unpin for HandlerInvoker<'a, 'b, C>where
C: Unpin,
impl<'a, 'b, C> UnsafeUnpin for HandlerInvoker<'a, 'b, C>where
C: UnsafeUnpin,
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.