Skip to main content

DelegateChatAccessPolicy

Trait DelegateChatAccessPolicy 

Source
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§

Source

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

The backend that answers the ChatAccessPolicy methods.

Required Methods§

Source

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".

Implementors§