pub struct CoapEstRouter;Expand description
Routes CoAP URI paths to EST operations.
RFC 9483 §5.1: EST-coaps uses abbreviated path names under
/.well-known/est/ to reduce URI size for constrained devices.
The router strips the well-known prefix and maps the final path
segment to an EstOperation.
Implementations§
Source§impl CoapEstRouter
impl CoapEstRouter
Sourcepub fn route(path: &str) -> CoapResult<EstOperation>
pub fn route(path: &str) -> CoapResult<EstOperation>
Maps a CoAP URI path to an EST operation.
Recognizes both the abbreviated RFC 9483 paths and the full-length path segments from the well-known prefix.
§Path Recognition
The router accepts paths with or without the /.well-known/est/
prefix, recognizing these final segments:
sen→ SimpleEnrollsren→ SimpleReenrollskg→ ServerKeygenatt→ CsrAttrscacertsorcrts→ CaCerts
Sourcepub fn route_message(message: CoapMessage) -> CoapResult<CoapEstRequest>
pub fn route_message(message: CoapMessage) -> CoapResult<CoapEstRequest>
Routes a full CoAP message to an EST operation.
Extracts the URI path from the message options and resolves the corresponding EST operation. Also validates that the CoAP method is appropriate for the operation.
Auto Trait Implementations§
impl Freeze for CoapEstRouter
impl RefUnwindSafe for CoapEstRouter
impl Send for CoapEstRouter
impl Sync for CoapEstRouter
impl Unpin for CoapEstRouter
impl UnsafeUnpin for CoapEstRouter
impl UnwindSafe for CoapEstRouter
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more