Trait tor_keymgr::keystore::ToEncodableKey
source · pub trait ToEncodableKey {
type Key: EncodableKey + 'static;
// Required methods
fn to_encodable_key(self) -> Self::Key;
fn from_encodable_key(key: Self::Key) -> Self;
}
Available on crate feature
keymgr
only.Expand description
A key that can be converted to an EncodableKey
.
Required Associated Types§
sourcetype Key: EncodableKey + 'static
type Key: EncodableKey + 'static
The key type this can be converted to/from.
Required Methods§
sourcefn to_encodable_key(self) -> Self::Key
fn to_encodable_key(self) -> Self::Key
Convert this key to a type that implements EncodableKey
.
sourcefn from_encodable_key(key: Self::Key) -> Self
fn from_encodable_key(key: Self::Key) -> Self
Convert an EncodableKey
to another key type.
Object Safety§
This trait is not object safe.