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