Skip to main content

SessionProvider

Trait SessionProvider 

Source
pub trait SessionProvider {
    // Required methods
    fn load_keys(&self) -> Result<Vec<KeypairEntry>, AgentError>;
    fn confirmer(&self) -> Box<dyn Confirmer>;
    fn audit(&self) -> Box<dyn AuditSink>;
    fn clock(&self) -> Box<dyn Clock>;
}
Expand description

Provider of the live session inputs per request: the custodied keypairs, a fresh confirmer, audit sink, and clock. Implemented by the CLI over its Ctx; behind a trait so the daemon stays face-agnostic and testable.

Required Methods§

Source

fn load_keys(&self) -> Result<Vec<KeypairEntry>, AgentError>

Load the custodied keypairs that have a private half. Out-of-scope filtering is applied by the session against the agent’s scope (I13).

Source

fn confirmer(&self) -> Box<dyn Confirmer>

A fresh confirmation broker (biometric / file fallback).

Source

fn audit(&self) -> Box<dyn AuditSink>

The append-only audit sink (I12).

Source

fn clock(&self) -> Box<dyn Clock>

The clock for audit timestamps.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§