Expand description
JMAP Chat extension method handlers.
§Usage
Implement ChatBackend for your storage layer, then call
register_chat_handlers to wire all method names into a
jmap_server::Dispatcher:
let mut dispatcher: Dispatcher<()> = Dispatcher::new();
register_chat_handlers(&mut dispatcher, Arc::new(backend));Re-exports§
pub use backend::ChatBackend;pub use ban::handle_ban_changes;pub use ban::handle_ban_get;pub use ban::handle_ban_set;pub use chat::handle_chat_changes;pub use chat::handle_chat_get;pub use chat::handle_chat_query;pub use chat::handle_chat_query_changes;pub use chat::handle_chat_set;pub use chat::handle_chat_typing;pub use contact::handle_contact_changes;pub use contact::handle_contact_get;pub use contact::handle_contact_query;pub use contact::handle_contact_query_changes;pub use contact::handle_contact_set;pub use emoji::handle_emoji_changes;pub use emoji::handle_emoji_get;pub use emoji::handle_emoji_query;pub use emoji::handle_emoji_query_changes;pub use emoji::handle_emoji_set;pub use invite::handle_invite_changes;pub use invite::handle_invite_get;pub use invite::handle_invite_set;pub use message::handle_message_changes;pub use message::handle_message_get;pub use message::handle_message_query;pub use message::handle_message_query_changes;pub use message::handle_message_set;pub use position::handle_position_changes;pub use position::handle_position_get;pub use position::handle_position_set;pub use presence::handle_presence_changes;pub use presence::handle_presence_get;pub use presence::handle_presence_set;pub use space::handle_space_changes;pub use space::handle_space_get;pub use space::handle_space_join;pub use space::handle_space_query;pub use space::handle_space_query_changes;pub use space::handle_space_set;
Modules§
- backend
- ChatBackend trait and supporting types for JMAP Chat method handlers.
- ban
- SpaceBan/* method handlers (JMAP Chat extension §SpaceBan).
- chat
- Chat/* method handlers (JMAP Chat extension §Chat).
- contact
- ChatContact/* method handlers (JMAP Chat extension §ChatContact).
- emoji
- CustomEmoji/* method handlers (JMAP Chat extension §CustomEmoji).
- invite
- SpaceInvite/* method handlers (JMAP Chat extension §SpaceInvite).
- message
- Message/* method handlers (JMAP Chat extension §Message).
- position
- ReadPosition/* method handlers (JMAP Chat extension §ReadPosition).
- presence
- PresenceStatus/* method handlers (JMAP Chat extension §PresenceStatus).
- space
- Space/* method handlers (JMAP Chat extension §Space).
Structs§
- Added
Item - One entry in the
addedlist of a/queryChangesresponse (RFC 8620 §5.6). - Changes
Result - Result of a
/changescall (RFC 8620 §5.2). - Closure
Handler - A
JmapHandlerthat wraps an async closure over a shared backend. - Query
Changes Result - Result of a
/queryChangescall (RFC 8620 §5.6). - Query
Result - Result of a
/querycall (RFC 8620 §5.5). - SetError
- A per-item error in a
/setresponse (notCreated,notUpdated,notDestroyedmaps) (RFC 8620 §5.3).
Enums§
- Backend
Changes Error - Error type returned by
JmapBackend::get_changesandJmapBackend::query_changes. - Backend
SetError - Error type returned by create/update/destroy backend methods.
- SetError
Type - The machine-readable type for a
SetError(RFC 8620 §5.3 and RFC 8621).
Traits§
- GetObject
- Marker for object types that support
getandchangesoperations. - Jmap
Backend - Read-side backend supertrait shared by all JMAP server crates.
- Jmap
Object - Marker trait for all JMAP object types.
- Query
Object - Marker for object types that support
queryandqueryChangesoperations. - SetObject
- Marker for object types that support
set(create/update/destroy) operations.
Functions§
- register_
chat_ handlers - Register all JMAP Chat method handlers with
dispatcher.