pub struct WorkerOptions {
pub connection: ConnectionOptions,
pub concurrency: usize,
pub batch_size: usize,
pub poll_timeout_ms: i64,
pub lock_ttl_ms: i64,
pub heartbeat_interval: Option<Duration>,
pub name: Option<String>,
}Fields§
§connection: ConnectionOptions§concurrency: usize§batch_size: usize§poll_timeout_ms: i64§lock_ttl_ms: i64§heartbeat_interval: Option<Duration>§name: Option<String>Trait Implementations§
Source§impl Clone for WorkerOptions
impl Clone for WorkerOptions
Source§fn clone(&self) -> WorkerOptions
fn clone(&self) -> WorkerOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for WorkerOptions
impl !UnwindSafe for WorkerOptions
impl Freeze for WorkerOptions
impl Send for WorkerOptions
impl Sync for WorkerOptions
impl Unpin for WorkerOptions
impl UnsafeUnpin for WorkerOptions
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