Struct taxy::config::file::FileStorage
source · pub struct FileStorage { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Storage for FileStorage
impl Storage for FileStorage
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 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 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_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,
Auto Trait Implementations§
impl Freeze for FileStorage
impl RefUnwindSafe for FileStorage
impl Send for FileStorage
impl Sync for FileStorage
impl Unpin for FileStorage
impl UnwindSafe for FileStorage
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more