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 as Handler>::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>
type Record<'a>
where
Self: 'a = EmptyRecord
type Reporter<'a>
where
Self: 'a = Empty<EmptyRecord>
fn report(&self) -> Self::Reporter<'_>
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<'a, OldRD, OldH> HandlerBuilder<'a, OldRD> for OldHwhere
OldH: Handler<RequestData = OldRD>,
impl<'a, OldRD, OldH> HandlerBuilder<'a, OldRD> for OldHwhere
OldH: Handler<RequestData = OldRD>,
sourcefn at<H>(self, path: &'a [&'a str], handler: H) -> ForkingHandler<'a, H, OldH>
fn at<H>(self, path: &'a [&'a str], handler: H) -> ForkingHandler<'a, H, OldH>
👎Deprecated