Skip to main content

DelegateChatSpaces

Trait DelegateChatSpaces 

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

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

Forward every ChatSpaces method to chat_spaces’s target.

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

Required Associated Types§

Source

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

The backend that answers the ChatSpaces methods.

Required Methods§

Source

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