Module coap_handler::implementations [−][src]
Generic handlers that implement the Handler trait
Options Hiding
A developing theme (since the 0.2 release) is that handlers "consume" options. For example, the ForkingHandler built through HandlerBuilder::at "eats" the Uri-Path; likewise, an Accept-based dispatcher would consume the Accept option.
This allows the handlers themselves to check for any left-over critical options and fail if they can't handle them -- without the need to mask them out there assuming (without an actual check) that prior wrappers took care of them.
Structs
ForkingHandler | |
NeverFound | A resource that unconditionally responds 4.04 Not Found. |
SimpleCBORWrapper | Wrapper for resource handlers that are implemented in terms of GETting, POSTing or PUTting objects in CBOR format. |
SimpleRenderableData | Information a SimpleRenderable needs to carry from request to response. |
SimpleRendered | |
TypedStaticResponse |
Enums
ForkingRequestData | Tagged-union container for ForkingHandler |
SimpleCBORRequestData |
Traits
HandlerBuilder | Trait implemented by default on all handlers that lets the user stack them using a builder-like syntax. |
SimpleCBORHandler | A simple Handler trait that supports GET, POST and/or PUT on a data structure that supports serde. |
SimpleRenderable | A simplified Handler trait that can react to GET requests and will render to a fmt::Write object with blockwise backing. |
Functions
new_dispatcher | Start building a tree of sub-resources |