Structs§
- Device
Key - Borrowing key for device identity (user, server, device). Use with HashSet for O(1) lookups.
- Jid
- JidRef
- Observed
Jid - Privacy-aware
Displaywrapper for aJid, for use in tracing fields. - Parsed
JidParts - Intermediate result from fast JID parsing. This avoids allocations by returning byte indices into the original string.
Enums§
Constants§
- BOT_
SERVER - BROADCAST_
SERVER - DEFAULT_
USER_ SERVER - GROUP_
SERVER - HIDDEN_
USER_ SERVER - HOSTED_
LID_ SERVER - HOSTED_
SERVER - INTEROP_
SERVER - LEGACY_
USER_ SERVER - MESSENGER_
SERVER - NEWSLETTER_
SERVER - PSA_
USER - SERVER_
JID - STATUS_
BROADCAST_ USER
Traits§
Functions§
- observe_
str - Privacy-aware redaction of a JID supplied as a string (e.g. a group jid
&strin a span field). Parses it and appliesJid::observe; if it does not parse, falls back to a keyed token so a raw number can never leak. Honorstracing-pii. - observe_
token - Per-process keyed token for a sensitive string: a SipHash with a random key
created once per process. Stable within a run (so the same value correlates
across spans) but not precomputable from the input, so exported traces cannot
be brute-forced back to the original (e.g. an E.164 phone number). Public so
other layers can redact non-
Jididentifiers (e.g. a SignalProtocolAddressname, which embeds a phone number) with the same keyed scheme. - parse_
jid_ fast - Single-pass JID parser optimized for hot paths. Scans the input string once to find all relevant separators (@, :) and returns slices into the original string without allocation.
- parse_
jid_ ref - Parse the allocation-free JID shapes into the same borrowed type used by the binary decoder.
- push_
jid_ to_ compact - Write the JID display representation directly into a
CompactString, bypassingfmt::Displayanddyn Writedispatch entirely. - push_
jid_ to_ string - Write the JID display representation directly into a
String, bypassingfmt::Displayanddyn Writedispatch entirely.