Skip to main content

Crate sip_header_catalog

Crate sip_header_catalog 

Source
Expand description

SIP header names with canonical wire casing (RFC 3261 and extensions), and the raw row lookup a header store implements.

SipHeader covers the IANA SIP header field registry and deployed headers from expired drafts, with compact forms (RFC 3261 §7.3.3) and each header’s list and repetition rules. SipHeaderRows is the lookup a key-value store implements; the parsing accessors over it live in sip-header. SipHeaderFields and SipHeaderField hold received rows as sent, and are such stores.

Macros§

define_header_enum
Defines a #[non_exhaustive] fieldless enum whose variants map to canonical protocol names.

Structs§

NameMatcher
A header name resolved once, for testing many wire names against it as SipHeader::name_matches does.
ParseSipHeaderError
Error for an unrecognized value; displays as unknown SIP header (<n> bytes). The rejected input is the field.
RowError
A store that decodes its own framing failed to produce a header’s rows.
SipHeaderField
One header: its name as sent and every row it arrived with, borrowed or owned.
SipHeaderFieldRows
The rows of a SipHeaderField, in wire order; SipHeaderField::rows returns it.
SipHeaderFields
The header rows of a message: (name as sent, value) pairs in wire order, borrowed or owned.
SipHeaderFieldsIntoIter
The rows of a SipHeaderFields, owned by the iterator, in wire order.
SipHeaderFieldsIter
The rows of a SipHeaderFields as (name as sent, value), in wire order; SipHeaderFields::iter returns it.

Enums§

Registry
The registry a SipHeader name comes from.
RowErrorKind
What a store’s framing of a header’s rows broke.
SipHeader
SIP header names with canonical wire casing.

Traits§

HeaderName
A fieldless enum of protocol names, as define_header_enum! generates.
SipHeaderRows
Raw lookup of SIP header rows from any key-value store.
SipHeaderRowsExt
Lookups derived from SipHeaderRows, for every store.