Struct talos_certifier_adapters::postgres::pg::Pg
source · pub struct Pg {
pub pool: Pool,
}
Fields§
§pool: Pool
Implementations§
Trait Implementations§
source§impl DecisionStore for Pg
impl DecisionStore for Pg
type Decision = DecisionMessage
fn get_decision<'life0, 'async_trait>(
&'life0 self,
key: String
) -> Pin<Box<dyn Future<Output = Result<Option<Self::Decision>, DecisionStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn insert_decision<'life0, 'async_trait>(
&'life0 self,
key: String,
decision: Self::Decision
) -> Pin<Box<dyn Future<Output = Result<Self::Decision, DecisionStoreError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_healthy<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn shutdown<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for Pg
impl Send for Pg
impl Sync for Pg
impl Unpin for Pg
impl !UnwindSafe for Pg
Blanket Implementations§
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