pub trait DelegateChatSettings: JmapBackend {
type Target: ChatSettings<CallerCtx = Self::CallerCtx, Error = Self::Error>;
// Required method
fn chat_settings(&self) -> &Self::Target;
}Expand description
Forward every ChatSettings method to chat_settings’s target.
Implement this instead of ChatSettings; a type implements one or the other, never both.
Required Associated Types§
Sourcetype Target: ChatSettings<CallerCtx = Self::CallerCtx, Error = Self::Error>
type Target: ChatSettings<CallerCtx = Self::CallerCtx, Error = Self::Error>
The backend that answers the ChatSettings methods.
Required Methods§
Sourcefn chat_settings(&self) -> &Self::Target
fn chat_settings(&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".