pub trait DistributedBackend: BackendProvider {
type DistributedSession: DistributedSession<Error = Self::Error>;
// Required method
fn distributed_session(
session: &Self::Session,
) -> Option<&Self::DistributedSession>;
}Expand description
Backend extension exposing communication attached to a model session.
Required Associated Types§
Sourcetype DistributedSession: DistributedSession<Error = Self::Error>
type DistributedSession: DistributedSession<Error = Self::Error>
Selected distributed session implementation.
Required Methods§
Sourcefn distributed_session(
session: &Self::Session,
) -> Option<&Self::DistributedSession>
fn distributed_session( session: &Self::Session, ) -> Option<&Self::DistributedSession>
Returns communication for a distributed model session.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".