Skip to main content

SessionResolver

Trait SessionResolver 

Source
pub trait SessionResolver: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn resolve(&self) -> Result<Option<ResolvedSession>>;
}

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn resolve(&self) -> Result<Option<ResolvedSession>>

Ok(None): this source does not know the session. Err: it should know and failed.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§