coap_handler

Trait Record

Source
pub trait Record {
    type PathElement: AsRef<str>;
    type PathElements: Iterator<Item = Self::PathElement>;
    type Attributes: Iterator<Item = Attribute>;

    // Required methods
    fn path(&self) -> Self::PathElements;
    fn rel(&self) -> Option<&str>;
    fn attributes(&self) -> Self::Attributes;
}
Expand description

A entry produced by Reporting, corresponding to a single link in a Link Format file.

Required Associated Types§

Required Methods§

Source

fn path(&self) -> Self::PathElements

List of path segments (equivalent to Uri-Path option values) leading to the indicated resoruce

Source

fn rel(&self) -> Option<&str>

Link relation (or None to default to the implicit “hosts”)

Note that the allowed character set is limited compared to full UTF-8 strings.

Source

fn attributes(&self) -> Self::Attributes

Target attributes of the link

Implementors§