coap-request 0.1.0

Interface to CoAP requests
Documentation
  • Coverage
  • 72.73%
    8 out of 11 items documented0 out of 5 items with examples
  • Size
  • Source code size: 7.78 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 692.88 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • chrysn

coap-request

The coap-request crate defines an interface provided by a CoAP client stack towards applications that can send requests through it.

It is the client side equivalent of the coap-handler crate.

Usability

This crate provides a very low-level and generic interface, which is not ideal for every-day "GET me the plain text content of coap://example.com/foo" style requests. The crate coap-request-implementations will fill the gap, just as coap-handler-implementations does for coap-handler.

Caveats

There boundary of responsibilities for respecting protocol level requirements is not clearly established yet. For example, it is unclear how the application learns special option encoding rules it needs to follow given the transport, or whether other operations on the same stack have concluded their operations w/rt Request-Tag processing.

It is unclear yet whether the async functions should be Send or not (or whether distinct traits are needed to cater for both cases).

License: MIT OR Apache-2.0