Struct apalis_sql::postgres::PostgresStorage  
source · pub struct PostgresStorage<T> { /* private fields */ }Available on crate feature 
postgres only.Expand description
Represents a Storage that persists to Postgres
Implementations§
source§impl PostgresStorage<()>
 
impl PostgresStorage<()>
source§impl<T: Serialize + DeserializeOwned> PostgresStorage<T>
 
impl<T: Serialize + DeserializeOwned> PostgresStorage<T>
source§impl<T> PostgresStorage<T>
 
impl<T> PostgresStorage<T>
Trait Implementations§
source§impl<T: Sync> Ack<T> for PostgresStorage<T>
 
impl<T: Sync> Ack<T> for PostgresStorage<T>
source§impl<T: Job + Serialize + DeserializeOwned + Sync + Send + Unpin + 'static> Backend<Request<T>> for PostgresStorage<T>
 
impl<T: Job + Serialize + DeserializeOwned + Sync + Send + Unpin + 'static> Backend<Request<T>> for PostgresStorage<T>
§type Stream = BackendStream<Pin<Box<dyn Stream<Item = Result<Option<Request<T>>, Error>> + Send>>>
 
type Stream = BackendStream<Pin<Box<dyn Stream<Item = Result<Option<Request<T>>, Error>> + Send>>>
The stream to be produced by the backend
§type Layer = AckLayer<PostgresStorage<T>, T>
 
type Layer = AckLayer<PostgresStorage<T>, T>
Returns the final decoration of layers
source§impl<T> Clone for PostgresStorage<T>
 
impl<T> Clone for PostgresStorage<T>
source§impl<T> Debug for PostgresStorage<T>
 
impl<T> Debug for PostgresStorage<T>
source§impl<T> Storage for PostgresStorage<T>
 
impl<T> Storage for PostgresStorage<T>
§type Identifier = TaskId
 
type Identifier = TaskId
Jobs must have Ids.
source§async fn schedule(&mut self, job: Self::Job, on: i64) -> Result<TaskId, Error>
 
async fn schedule(&mut self, job: Self::Job, on: i64) -> Result<TaskId, Error>
Push a job into the scheduled set
source§async fn fetch_by_id(
    &self,
    job_id: &TaskId
) -> Result<Option<Request<Self::Job>>, Error>
 
async fn fetch_by_id( &self, job_id: &TaskId ) -> Result<Option<Request<Self::Job>>, Error>
Fetch a job given an id
source§async fn reschedule(
    &mut self,
    job: Request<T>,
    wait: Duration
) -> Result<(), Error>
 
async fn reschedule( &mut self, job: Request<T>, wait: Duration ) -> Result<(), Error>
Reschedule a job
Auto Trait Implementations§
impl<T> Freeze for PostgresStorage<T>
impl<T> !RefUnwindSafe for PostgresStorage<T>
impl<T> Send for PostgresStorage<T>where
    T: Send,
impl<T> Sync for PostgresStorage<T>where
    T: Sync,
impl<T> Unpin for PostgresStorage<T>where
    T: Unpin,
impl<T> !UnwindSafe for PostgresStorage<T>
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