pub struct PostgresAgentPoolStore { /* private fields */ }Implementations§
Source§impl PostgresAgentPoolStore
impl PostgresAgentPoolStore
pub fn new(client: PostgresStoreClient) -> Self
Trait Implementations§
Source§impl AgentPoolStore for PostgresAgentPoolStore
impl AgentPoolStore for PostgresAgentPoolStore
Source§fn open_pool(
&self,
pool_id: AgentPoolId,
config: AgentPoolStoreConfig,
) -> Result<AgentPoolSnapshot, AgentError>
fn open_pool( &self, pool_id: AgentPoolId, config: AgentPoolStoreConfig, ) -> Result<AgentPoolSnapshot, AgentError>
Create or open a logical pool and return the durable snapshot.
Source§fn snapshot(
&self,
pool_id: &AgentPoolId,
) -> Result<AgentPoolSnapshot, AgentError>
fn snapshot( &self, pool_id: &AgentPoolId, ) -> Result<AgentPoolSnapshot, AgentError>
Rehydrate the current durable pool snapshot.
Source§fn record_pool_created(
&self,
pool_id: &AgentPoolId,
) -> Result<AgentPoolStoreCursor, AgentError>
fn record_pool_created( &self, pool_id: &AgentPoolId, ) -> Result<AgentPoolStoreCursor, AgentError>
Mark the pool-created lifecycle as durable.
Source§fn join_member(
&self,
pool_id: &AgentPoolId,
member: AgentPoolMember,
) -> Result<AgentPoolStoreCursor, AgentError>
fn join_member( &self, pool_id: &AgentPoolId, member: AgentPoolMember, ) -> Result<AgentPoolStoreCursor, AgentError>
Persist member join.
Source§fn leave_member(
&self,
_pool_id: &AgentPoolId,
_run_id: &RunId,
) -> Result<(AgentPoolMember, AgentPoolStoreCursor), AgentError>
fn leave_member( &self, _pool_id: &AgentPoolId, _run_id: &RunId, ) -> Result<(AgentPoolMember, AgentPoolStoreCursor), AgentError>
Persist member leave and return the removed member.
Source§fn message_receipt(
&self,
_pool_id: &AgentPoolId,
_idempotency_key: &IdempotencyKey,
) -> Result<Option<MessageReceipt>, AgentError>
fn message_receipt( &self, _pool_id: &AgentPoolId, _idempotency_key: &IdempotencyKey, ) -> Result<Option<MessageReceipt>, AgentError>
Look up message dedupe state by idempotency key.
Source§fn record_message(
&self,
pool_id: &AgentPoolId,
message: RunMessage,
receipt: MessageReceipt,
) -> Result<AgentPoolStoreCursor, AgentError>
fn record_message( &self, pool_id: &AgentPoolId, message: RunMessage, receipt: MessageReceipt, ) -> Result<AgentPoolStoreCursor, AgentError>
Persist one message status transition.
Source§fn wake_registration(
&self,
_pool_id: &AgentPoolId,
_idempotency_key: &IdempotencyKey,
) -> Result<Option<WakeRegistration>, AgentError>
fn wake_registration( &self, _pool_id: &AgentPoolId, _idempotency_key: &IdempotencyKey, ) -> Result<Option<WakeRegistration>, AgentError>
Look up wake dedupe state by idempotency key.
Source§fn wake(
&self,
_pool_id: &AgentPoolId,
_condition_id: &WakeConditionId,
) -> Result<Option<AgentPoolStoredWake>, AgentError>
fn wake( &self, _pool_id: &AgentPoolId, _condition_id: &WakeConditionId, ) -> Result<Option<AgentPoolStoredWake>, AgentError>
Look up one stored wake by condition id.
Source§fn record_wake(
&self,
pool_id: &AgentPoolId,
condition: WakeCondition,
compiled_filter: CompiledEventFilter,
registration: WakeRegistration,
) -> Result<AgentPoolStoreCursor, AgentError>
fn record_wake( &self, pool_id: &AgentPoolId, condition: WakeCondition, compiled_filter: CompiledEventFilter, registration: WakeRegistration, ) -> Result<AgentPoolStoreCursor, AgentError>
Persist one wake status transition.
Source§fn watch(
&self,
_pool_id: &AgentPoolId,
_cursor: Option<AgentPoolStoreCursor>,
) -> Result<AgentPoolStoreStream, AgentError>
fn watch( &self, _pool_id: &AgentPoolId, _cursor: Option<AgentPoolStoreCursor>, ) -> Result<AgentPoolStoreStream, AgentError>
Read durable pool changes after the supplied cursor.
Source§fn next_event_sequence(&self, pool_id: &AgentPoolId) -> Result<u64, AgentError>
fn next_event_sequence(&self, pool_id: &AgentPoolId) -> Result<u64, AgentError>
Allocate a unique event sequence for pool event IDs.
Source§impl Clone for PostgresAgentPoolStore
impl Clone for PostgresAgentPoolStore
Source§fn clone(&self) -> PostgresAgentPoolStore
fn clone(&self) -> PostgresAgentPoolStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for PostgresAgentPoolStore
impl !UnwindSafe for PostgresAgentPoolStore
impl Freeze for PostgresAgentPoolStore
impl Send for PostgresAgentPoolStore
impl Sync for PostgresAgentPoolStore
impl Unpin for PostgresAgentPoolStore
impl UnsafeUnpin for PostgresAgentPoolStore
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