pub struct PostgresStore { /* private fields */ }Implementations§
Source§impl PostgresStore
impl PostgresStore
pub async fn connect(connection_string: &str) -> Result<Self, PostgresError>
pub async fn from_client(client: Client) -> Result<Self, PostgresError>
pub fn with_retention(self, retention: Retention) -> Self
pub async fn collect(&self) -> Result<u64, PostgresError>
pub async fn snapshot( &self, scope: &ScopeKey, ) -> Result<Option<StoreSnapshot>, PostgresError>
pub async fn reset_policy( &self, scope: &ScopeKey, policy: &PolicyId, partition: Option<&PartitionKey>, ) -> Result<ResetReport, PostgresError>
Trait Implementations§
Source§impl Clone for PostgresStore
impl Clone for PostgresStore
Source§impl Store for PostgresStore
impl Store for PostgresStore
type Error = PostgresError
async fn decide( &self, request: AdmissionRequest, ) -> Result<StoreDecision, Self::Error>
async fn peek( &self, request: AdmissionRequest, ) -> Result<StorePeek, Self::Error>
async fn renew( &self, renewal: LeaseRenewal, ) -> Result<LeaseRenewalResult, Self::Error>
async fn finish( &self, completion: Completion, ) -> Result<CompletionResult, Self::Error>
Auto Trait Implementations§
impl !RefUnwindSafe for PostgresStore
impl !UnwindSafe for PostgresStore
impl Forget for PostgresStore
impl Freeze for PostgresStore
impl Move for PostgresStore
impl Send for PostgresStore
impl Sync for PostgresStore
impl Unpin for PostgresStore
impl UnsafeUnpin for PostgresStore
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