Module link_format

Source
Expand description

Mechanisms and constants for encoding and decoding IETF-RFC6690 CoAP link-formats.

Structs§

LinkAttributeParser
Parsing iterator which parses link attributes for IETF-RFC6690 CoAP link-format processing.
LinkAttributeWrite
Helper for writing link format attributes; created by calling LinkFormatWrite::link.
LinkFormatParser
Parsing iterator which parses a string formatted as an IETF-RFC6690 CoAP link-format.
LinkFormatWrite
Helper for writing IETF-RFC6690 CoAP link-formats to anything implementing core::fmt::Write.
Unquote
Character iterator which decodes a IETF-RFC2616 quoted-string. Used by LinkAttributeParser.

Enums§

ErrorLinkFormat
Error type for parsing a link format.

Constants§

LINK_ATTR_ANCHOR
Anchor attribute.
LINK_ATTR_CONTENT_FORMAT
Content-Format Code(s).
LINK_ATTR_ENDPOINT_NAME
Name of the endpoint, max 63 bytes.
LINK_ATTR_ENDPOINT_TYPE
Semantic name of the endpoint. Must be less than 63 bytes.
LINK_ATTR_GROUP_NAME
Name of a group in this RD. Must be less than 63 bytes.
LINK_ATTR_HREFLANG
A hint indicating what the language of the result of dereferencing the link should be.
LINK_ATTR_INTERFACE_DESCRIPTION
Interface Description Attribute.
LINK_ATTR_MAXIMUM_SIZE_ESTIMATE
The estimated maximum size of the fetched resource.
LINK_ATTR_MEDIA
Media Attribute. Used to indicate intended destination medium or media for style information.
LINK_ATTR_OBSERVABLE
Identifies this resource as observable if present.
LINK_ATTR_REGISTRATION_BASE_URI
The scheme, address and point and path at which this server is available.
LINK_ATTR_REGISTRATION_LIFETIME
Lifetime of the registration in seconds. Valid values are between 60-4294967295, inclusive.
LINK_ATTR_REL
Relation Type.
LINK_ATTR_RESOURCE_TYPE
Resource Type Attribute.
LINK_ATTR_SECTOR
Sector to which this endpoint belongs. Must be less than 63 bytes.
LINK_ATTR_TITLE
Human-readable label describing the resource.
LINK_ATTR_TITLE_STAR
Human-readable label describing the resource, along with language information.
LINK_ATTR_VALUE
The value of this resource expressed as a human-readable string. Must be less than 63 bytes.