Skip to main content

DistributedBackend

Trait DistributedBackend 

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

Source

type DistributedSession: DistributedSession<Error = Self::Error>

Selected distributed session implementation.

Required Methods§

Source

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

Implementors§