Struct riot_wrappers::coap_handler::v0_2::GcoapHandler
source · 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::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: &mut 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> 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