Skip to main content

DelegateChatMessageLifecycle

Trait DelegateChatMessageLifecycle 

Source
pub trait DelegateChatMessageLifecycle: JmapBackend {
    type Target: ChatMessageLifecycle<CallerCtx = Self::CallerCtx, Error = Self::Error>;

    // Required method
    fn chat_message_lifecycle(&self) -> &Self::Target;
}
Expand description

Forward every ChatMessageLifecycle method to chat_message_lifecycle’s target.

Implement this instead of ChatMessageLifecycle; a type implements one or the other, never both.

Required Associated Types§

Source

type Target: ChatMessageLifecycle<CallerCtx = Self::CallerCtx, Error = Self::Error>

The backend that answers the ChatMessageLifecycle methods.

Required Methods§

Source

fn chat_message_lifecycle(&self) -> &Self::Target

The target, usually the wrapped backend.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§