Skip to main content

Module jid

Module jid 

Source

Structs§

DeviceKey
Borrowing key for device identity (user, server, device). Use with HashSet for O(1) lookups.
Jid
JidRef
ParsedJidParts
Intermediate result from fast JID parsing. This avoids allocations by returning byte indices into the original string.

Enums§

JidError

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
SERVER_JID
STATUS_BROADCAST_USER

Traits§

JidExt

Functions§

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.

Type Aliases§

MessageId
MessageServerId