pub struct GcoapHandler<H>(pub H)
where
H: Handler;
Available on
riot_module_gcoap
only.Expand description
Adapter to get a crate::gcoap::Handler from a more generic coap_handler_0_2::Handler, typically to register it through a crate::gcoap::SingleHandlerListener.
Tuple Fields§
§0: H
Trait Implementations§
Source§impl<H> Handler for GcoapHandler<H>where
H: Handler,
impl<H> Handler for GcoapHandler<H>where
H: Handler,
fn handle(&mut self, pkt: PacketBuffer<'_>) -> isize
Source§impl<H> WithLinkEncoder for GcoapHandler<H>
impl<H> WithLinkEncoder for GcoapHandler<H>
fn encode(&self, writer: &mut LinkEncoder<'_>)
Auto Trait Implementations§
impl<H> Freeze for GcoapHandler<H>where
H: Freeze,
impl<H> RefUnwindSafe for GcoapHandler<H>where
H: RefUnwindSafe,
impl<H> Send for GcoapHandler<H>where
H: Send,
impl<H> Sync for GcoapHandler<H>where
H: Sync,
impl<H> Unpin for GcoapHandler<H>where
H: Unpin,
impl<H> UnwindSafe for GcoapHandler<H>where
H: 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
Source§impl<T> IntoSwitch for T
impl<T> IntoSwitch for T
Source§fn into_switch<ActiveLevel>(self) -> Switch<T, ActiveLevel>
fn into_switch<ActiveLevel>(self) -> Switch<T, ActiveLevel>
Source§fn into_active_high_switch(self) -> Switch<Self, ActiveHigh>where
Self: Sized,
fn into_active_high_switch(self) -> Switch<Self, ActiveHigh>where
Self: Sized,
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.