[][src]Struct gearman_worker::WorkerBuilder

pub struct WorkerBuilder { /* fields omitted */ }

Helps building a new Worker

Methods

impl WorkerBuilder
[src]

pub fn new<S: Into<String>>(id: S, addr: SocketAddr) -> Self
[src]

Create a new WorkerBuilder passing all options explicitly.

pub fn id<S: Into<String>>(&mut self, id: S) -> &mut Self
[src]

Set a specific ID for this worker. This should be unique to all workers!

pub fn addr(&mut self, addr: SocketAddr) -> &mut Self
[src]

Define the socket address to connect to.

pub fn build(&self) -> Worker
[src]

Build the Worker.

Trait Implementations

impl Default for WorkerBuilder
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]