Struct coap_handler_implementations::NeverFound
source · [−]pub struct NeverFound {}Expand description
A resource that unconditionally responds 4.04 Not Found.
This is a convenience tool for building trees of resources – rather than special casing the “none found” situation, this handler can be used.
Trait Implementations
sourceimpl Handler for NeverFound
impl Handler for NeverFound
type RequestData = ()
fn extract_request_data(
&mut self,
_request: &impl ReadableMessage
) -> Self::RequestData
fn estimate_length(&mut self, _request: &Self::RequestData) -> usize
fn build_response(
&mut self,
response: &mut impl MutableWritableMessage,
_request: Self::RequestData
)
Auto Trait Implementations
impl RefUnwindSafe for NeverFound
impl Send for NeverFound
impl Sync for NeverFound
impl Unpin for NeverFound
impl UnwindSafe for NeverFound
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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 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