SessionFactory

Trait SessionFactory 

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

Source

type Session: Session

The Session being produced

Required Methods§

Source

fn build_session(&self) -> Self::Session

Produce the session

Implementors§