Skip to main content

DelegateChatEvents

Trait DelegateChatEvents 

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

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

Forward every ChatEvents method to chat_events’s target.

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

Required Associated Types§

Source

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

The backend that answers the ChatEvents methods.

Required Methods§

Source

fn chat_events(&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§