pub trait SessionFactory {
type Session: Session;
// Required method
fn build_session(&self) -> Self::Session;
}Expand description
Describes types that can produce Sessions
Required Associated Types§
Required Methods§
Sourcefn build_session(&self) -> Self::Session
fn build_session(&self) -> Self::Session
Produce the session
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".