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