Trait tor_keymgr::key_specifier::KeyPathInfoExtractor

source ·
pub trait KeyPathInfoExtractor: Send + Sync {
    // Required method
    fn describe(&self, path: &KeyPath) -> StdResult<KeyPathInfo, KeyPathError>;
}
Expand description

A trait for extracting info out of a KeyPaths.

This trait is used by KeyMgr::describe to extract information out of KeyPaths.

Required Methods§

source

fn describe(&self, path: &KeyPath) -> StdResult<KeyPathInfo, KeyPathError>

Describe the specified path.

Trait Implementations§

source§

impl Collect for &'static dyn KeyPathInfoExtractor

Available on crate feature keymgr only.

Implementors§