pub trait CTorKeySpecifier: KeySpecifier + Sized {
// Required methods
fn ctor_path(&self) -> Option<CTorPath>;
fn from_ctor_path(path: CTorPath) -> Result<Self, CTorPathError>;
}Expand description
A trait for converting key specifiers to and from CTorPath.
Important: this trait should not be implemented by hand.
It is auto-implemented for types that derive KeySpecifier.
Required Methods§
Sourcefn ctor_path(&self) -> Option<CTorPath>
fn ctor_path(&self) -> Option<CTorPath>
The location of the key in the C Tor key store (if supported).
Sourcefn from_ctor_path(path: CTorPath) -> Result<Self, CTorPathError>
fn from_ctor_path(path: CTorPath) -> Result<Self, CTorPathError>
Try to convert path to a specifier of this kind.
Returns an error if the CTorPath is not the path of a key of this type,
or if this type does not have a CTorPath.
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.