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§
Sourcetype Target: ChatSpaces<CallerCtx = Self::CallerCtx, Error = Self::Error>
type Target: ChatSpaces<CallerCtx = Self::CallerCtx, Error = Self::Error>
The backend that answers the ChatSpaces methods.
Required Methods§
Sourcefn chat_spaces(&self) -> &Self::Target
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".