Function robin::connection::establish [] [src]

pub fn establish<T: 'static + LookupJob>(
    config: Config,
    lookup_job: T
) -> RobinResult<WorkerConnection>

Create a new connection.

NOTE: You normally wouldn't need to call this. Instead use the robin_establish_connection! macro in the macros module.

The lookup function is necessary for parsing the String we get from Redis into a job type.

Make sure the config you're using here is the same config you use to boot the worker in worker::boot.