1 2 3 4 5 6 7 8 9 10
use std::{borrow::Cow, sync::Arc}; use dashmap::DashMap; pub struct Certificate { pub key: Vec<u8>, pub certificate: Vec<u8>, } pub type CertificateStore = Arc<DashMap<Cow<'static, str>, Certificate>>;