Struct coap_handler_implementations::wkc::NotReporting
source · [−]pub struct NotReporting<H: Handler>(_);
Expand description
Wrapper around arbitrary Handlers to make them not report in .well-known/core.
This helps integrating handler implementations that do not yet also implement Reporting by providing a blank report.
(With specialization, this could be moved into the default implementation).
Implementations
sourceimpl<H: Handler> NotReporting<H>
impl<H: Handler> NotReporting<H>
Trait Implementations
sourceimpl<H: Handler> Handler for NotReporting<H>
impl<H: Handler> Handler for NotReporting<H>
type RequestData = H::RequestData
fn extract_request_data(&mut self, m: &impl ReadableMessage) -> H::RequestData
fn estimate_length(&mut self, r: &Self::RequestData) -> usize
fn build_response(
&mut self,
m: &mut impl MutableWritableMessage,
r: Self::RequestData
)
sourceimpl<H: Handler> Reporting for NotReporting<H>
impl<H: Handler> Reporting for NotReporting<H>
Auto Trait Implementations
impl<H> RefUnwindSafe for NotReporting<H> where
H: RefUnwindSafe,
impl<H> Send for NotReporting<H> where
H: Send,
impl<H> Sync for NotReporting<H> where
H: Sync,
impl<H> Unpin for NotReporting<H> where
H: Unpin,
impl<H> UnwindSafe for NotReporting<H> where
H: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'a, OldRD, OldH> HandlerBuilder<'a, OldRD> for OldH where
OldH: Handler<RequestData = OldRD>,
impl<'a, OldRD, OldH> HandlerBuilder<'a, OldRD> for OldH where
OldH: Handler<RequestData = OldRD>,
sourcefn at<H>(self, path: &'a [&'a str], handler: H) -> ForkingHandler<'a, H, Self> where
H: Handler + Sized,
fn at<H>(self, path: &'a [&'a str], handler: H) -> ForkingHandler<'a, H, Self> where
H: Handler + Sized,
Divert requests arriving at path
into the given handler
. Read more
sourcefn at_with_attributes<H>(
self,
path: &'a [&'a str],
attributes: &'a [Attribute],
handler: H
) -> ForkingHandler<'a, ConstantSingleRecordReport<'a, H>, Self> where
H: Handler + Sized,
fn at_with_attributes<H>(
self,
path: &'a [&'a str],
attributes: &'a [Attribute],
handler: H
) -> ForkingHandler<'a, ConstantSingleRecordReport<'a, H>, Self> where
H: Handler + Sized,
Divert requests arriving at path
into the given handler
, and announce them with the
given attributes in .well-known/core. Read more