Trait SessionManager

Source
pub trait SessionManager: XrpcClient + Send {
    // Required method
    fn did(&self) -> impl Future<Output = Option<Did>> + Send;
}
Available on crate feature agent only.
Expand description

A trait for managing sessions.

Agent creation requires an implementation of this SessionManager.

Required Methods§

Source

fn did(&self) -> impl Future<Output = Option<Did>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<S, T> SessionManager for CredentialSession<S, T>
where S: AtpSessionStore + Send + Sync, T: XrpcClient + Send + Sync, S::Error: Error + Send + Sync + 'static,