pub struct PostgresBackend { /* private fields */ }Expand description
PostgreSQL implementation of Backend trait (v0.11.0).
Wraps PostgresStore internally and implements the new Backend interface.
Implementations§
Trait Implementations§
Source§impl Backend for PostgresBackend
impl Backend for PostgresBackend
Source§fn publish<'life0, 'async_trait>(
&'life0 self,
event: DispatchedEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn publish<'life0, 'async_trait>(
&'life0 self,
event: DispatchedEvent,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Publish an event to the backend.
Source§fn serve<'life0, 'async_trait, D>(
&'life0 self,
executor: Arc<JobExecutor<D>>,
config: BackendServeConfig,
shutdown: CancellationToken,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
fn serve<'life0, 'async_trait, D>( &'life0 self, executor: Arc<JobExecutor<D>>, config: BackendServeConfig, shutdown: CancellationToken, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
Start serving workers (blocking until shutdown). Read more
Source§impl Clone for PostgresBackend
impl Clone for PostgresBackend
Source§impl DeadLetterQueueBackend for PostgresBackend
impl DeadLetterQueueBackend for PostgresBackend
Source§impl InsightBackend for PostgresBackend
impl InsightBackend for PostgresBackend
Source§fn get_workflow_tree<'life0, 'async_trait>(
&'life0 self,
correlation_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<WorkflowTree>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_workflow_tree<'life0, 'async_trait>(
&'life0 self,
correlation_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<WorkflowTree>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get workflow execution tree.
Source§fn get_insight_stats<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<InsightStats>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_insight_stats<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<InsightStats>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get aggregate workflow statistics.
Source§impl WorkflowStatusBackend for PostgresBackend
impl WorkflowStatusBackend for PostgresBackend
Source§fn get_workflow_status<'life0, 'async_trait>(
&'life0 self,
correlation_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<WorkflowStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_workflow_status<'life0, 'async_trait>(
&'life0 self,
correlation_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<WorkflowStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get workflow status for a correlation ID.
Source§impl WorkflowSubscriptionBackend for PostgresBackend
impl WorkflowSubscriptionBackend for PostgresBackend
Source§fn subscribe_workflow_events<'life0, 'async_trait>(
&'life0 self,
correlation_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Stream<Item = WorkflowEvent> + Send + Unpin>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn subscribe_workflow_events<'life0, 'async_trait>(
&'life0 self,
correlation_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Stream<Item = WorkflowEvent> + Send + Unpin>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Subscribe to workflow events (LISTEN/NOTIFY pattern). Read more
Auto Trait Implementations§
impl Freeze for PostgresBackend
impl !RefUnwindSafe for PostgresBackend
impl Send for PostgresBackend
impl Sync for PostgresBackend
impl Unpin for PostgresBackend
impl UnsafeUnpin for PostgresBackend
impl !UnwindSafe for PostgresBackend
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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