pub trait SessionProvider {
    type Session: Clone + Send + PartialEq + Debug;

    // Required methods
    fn session(&self) -> Self::Session;
    fn is_new(&self) -> bool;
    fn is_closed(&self) -> bool;
}

Required Associated Types§

Required Methods§

source

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

source

fn is_new(&self) -> bool

source

fn is_closed(&self) -> bool

Object Safety§

This trait is not object safe.

Implementors§