Trait torn_key_pool::ApiKey
source · pub trait ApiKey: Sync + Send + Debug + Clone + 'static {
type IdType: PartialEq + Eq + Hash + Send + Sync + Debug + Clone;
// Required methods
fn value(&self) -> &str;
fn id(&self) -> Self::IdType;
// Provided method
fn selector<D>(&self) -> KeySelector<Self, D>
where D: KeyDomain { ... }
}Required Associated Types§
Required Methods§
Provided Methods§
fn selector<D>(&self) -> KeySelector<Self, D>where
D: KeyDomain,
Object Safety§
This trait is not object safe.