pub trait Storage: Send + Sync + 'static {
Show 14 methods
// Required methods
fn save_app_config<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 AppConfig
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn load_app_config<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = AppConfig> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn save_ports<'life0, 'life1, 'async_trait>(
&'life0 self,
entries: &'life1 [PortEntry]
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn load_ports<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<PortEntry>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn load_proxies<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<ProxyEntry>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn save_proxies<'life0, 'life1, 'async_trait>(
&'life0 self,
proxies: &'life1 [ProxyEntry]
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn save_cert<'life0, 'life1, 'async_trait>(
&'life0 self,
cert: &'life1 Cert
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn save_acme<'life0, 'life1, 'async_trait>(
&'life0 self,
acme: &'life1 AcmeEntry
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn delete_acme<'life0, 'async_trait>(
&'life0 self,
id: ShortId
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn delete_cert<'life0, 'async_trait>(
&'life0 self,
id: ShortId
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn load_acmes<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<AcmeEntry>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn load_certs<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<Arc<Cert>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn add_account<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
password: &'life2 str,
totp: bool
) -> Pin<Box<dyn Future<Output = Result<Account, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn verify_account<'life0, 'async_trait>(
&'life0 self,
request: LoginRequest
) -> Pin<Box<dyn Future<Output = Result<LoginResponse, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}