Struct acme_dns_rust::facade::DatabaseFacade
source · [−]pub struct DatabaseFacade<DB: Database> { /* private fields */ }
Trait Implementations
sourceimpl CertFacade for DatabaseFacade<Postgres>
impl CertFacade for DatabaseFacade<Postgres>
fn first_cert<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Option<Cert>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn update_cert<'life0, 'life1, 'async_trait>(
&'life0 self,
cert: &'life1 Cert
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn create_cert<'life0, 'life1, 'async_trait>(
&'life0 self,
cert: &'life1 Cert
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn start_cert<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Option<Cert>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn stop_cert<'life0, 'life1, 'async_trait>(
&'life0 self,
memory_cert: &'life1 mut Cert
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
sourceimpl<DB: Database> Clone for DatabaseFacade<DB>
impl<DB: Database> Clone for DatabaseFacade<DB>
sourceimpl<DB: Debug + Database> Debug for DatabaseFacade<DB>
impl<DB: Debug + Database> Debug for DatabaseFacade<DB>
sourceimpl DomainFacade for DatabaseFacade<Postgres>
impl DomainFacade for DatabaseFacade<Postgres>
fn find_domain_by_id<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<Option<Domain>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn create_domain<'life0, 'life1, 'async_trait>(
&'life0 self,
domain: &'life1 Domain
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn update_domain<'life0, 'life1, 'async_trait>(
&'life0 self,
domain: &'life1 Domain
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
sourceimpl From<Pool<Postgres>> for DatabaseFacade<Postgres>
impl From<Pool<Postgres>> for DatabaseFacade<Postgres>
Auto Trait Implementations
impl<DB> !RefUnwindSafe for DatabaseFacade<DB>
impl<DB> Send for DatabaseFacade<DB>
impl<DB> Sync for DatabaseFacade<DB>
impl<DB> Unpin for DatabaseFacade<DB>
impl<DB> !UnwindSafe for DatabaseFacade<DB>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more