pub struct RedisJobQueueBackend { /* private fields */ }Implementations§
Source§impl RedisJobQueueBackend
impl RedisJobQueueBackend
pub fn new<I: IntoConnectionInfo>( connection_info: I, name: String, options: RedisJobQueueBackendOptions, ) -> Result<Self, JobQueueError>
Trait Implementations§
Source§impl Clone for RedisJobQueueBackend
impl Clone for RedisJobQueueBackend
Source§fn clone(&self) -> RedisJobQueueBackend
fn clone(&self) -> RedisJobQueueBackend
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> JobQueueBackend<T> for RedisJobQueueBackend
impl<T> JobQueueBackend<T> for RedisJobQueueBackend
type Context = RedisJobContext
fn setup<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), JobQueueError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn produce<'life0, 'async_trait>(
&'life0 self,
job: Job<T>,
) -> Pin<Box<dyn Future<Output = Result<(), JobQueueError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn consume<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(Job<T>, Self::Context), JobQueueError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn done<'life0, 'async_trait>(
&'life0 self,
__arg1: Job<T>,
ctx: Self::Context,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn failed<'life0, 'async_trait>(
&'life0 self,
__arg1: Job<T>,
__arg2: Self::Context,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for RedisJobQueueBackend
impl RefUnwindSafe for RedisJobQueueBackend
impl Send for RedisJobQueueBackend
impl Sync for RedisJobQueueBackend
impl Unpin for RedisJobQueueBackend
impl UnwindSafe for RedisJobQueueBackend
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