Skip to main content

transport_entries

Function transport_entries 

Source
pub fn transport_entries(doc: &Value) -> Vec<DecodedEntry>
Expand description

Decode all typed transport service entries from a DID document into dialable DecodedEntrys, in preference order.

Preference (deterministic):

  1. By transport class: IrohTransport before QuicTransport. This is a reach preference only; neither carrier supplies application identity.
  2. Within a class, document order is preserved (stable sort) — operators can express secondary preference by ordering entries in the doc.

Entries that aren’t recognized transport services (HyprstreamService, AtprotoPersonalDataServer, etc.) or that fail to decode are skipped silently — a DID document with no transport reach resolves to an empty vec (graceful), not an error.