Struct robin::connection::WorkerConnection [] [src]

pub struct WorkerConnection { /* fields omitted */ }

The connection to Redis. Required to enqueue and dequeue jobs.

Each WorkerConnection has exactly one actual Redis connection.

Methods

impl WorkerConnection
[src]

[src]

Returns the connections config

[src]

Put a job into the queue.

This method will enqueue the job regardless of what the retry_count is. Not reenqueueing jobs that failed too much is handled at another level.

[src]

Put the job into the retry queue.

[src]

Pull the first job out of the queue.

[src]

Delete all jobs from all queues

[src]

The number of jobs in the queue

[src]

The number of jobs in the main queue

[src]

The number of jobs in the retry queue

[src]

true if there are 0 jobs in the queue, false otherwise

Trait Implementations

impl Debug for WorkerConnection
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations