pub trait JmapBackend: JmapAccounts + JmapReads { }Expand description
Backend supertrait shared by all JMAP server crates: JmapAccounts
plus JmapReads.
Domain-specific backend traits (MailBackend, ChatBackend, etc.) require
this trait as a supertrait and add write-side methods on top.
Implement JmapAccounts and JmapReads; the blanket impl provides
this trait, so it has no methods of its own and is never implemented
directly. A wrapper that forwards the reads to another backend
implements DelegateJmapReads instead of JmapReads.
Only the read operations that have an identical signature across all JMAP
object types belong here. Write operations (create_object, update_object,
destroy_object) and domain-specific operations remain in the domain crate.
This trait is not object-safe by design (generic methods). Use
Arc<impl JmapBackend> when sharing across tasks.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".