pub trait Backend {
    type Session: RawSession;
    type ReadError: Into<Error>;
    type ReadSession: TryFuture<Ok = Self::Session, Error = Self::ReadError>;

    fn read(&self) -> Self::ReadSession;
}
Expand description

A trait representing the session backend.

Required Associated Types§

The type of session which will be crated by ReadSession.

The type or errors which will occur when polling ReadSession.

The type of TryFuture that will return a Session.

Required Methods§

Creates a TryFuture to create a Session asynchronously.

Implementations on Foreign Types§

Implementors§