Skip to main content

Module prelude

Module prelude 

Source
Expand description

The context traits. Import them to call context methods on a concrete context type.

Re-exports§

pub use crate::context::XmtpMlsLocalContext;
pub use crate::features::MlsFeatures;

Structs§

LocalContext
The local context a XMTP MLS needs to function:

Traits§

AttachmentContext
A context the attachment code runs on: core and the attachment runtime.
AttachmentFeatures
The attachments feature slot: the client’s attachment runtime.
CoreContext
The context core code runs on: storage, the API client, the identity, events and the client’s plain settings. Features is what the crates above core add; each of them reads its own part through its own trait.
EngineFeatures
The engine’s feature slot: the client’s incoming runtime.
IdentityContext
A context the identity code runs on: core and identity resolution.
IdentityFeatures
Identity’s feature slot: the registry that coalesces exact identity lookups.
XmtpSharedContext
A context the engine runs on: core, identity resolution and the incoming runtime.