pub struct WorkOptions {
pub tick: TickOptions,
pub idle_ms: u64,
}Expand description
Worker mode settings: the options of every tick and how long to sleep when a tick found nothing to do or its claim failed. The default sleeps one second.
Fields§
§tick: TickOptions§idle_ms: u64Trait Implementations§
Source§impl Clone for WorkOptions
impl Clone for WorkOptions
impl Copy for WorkOptions
Source§impl Debug for WorkOptions
impl Debug for WorkOptions
Source§impl Default for WorkOptions
impl Default for WorkOptions
impl Eq for WorkOptions
Source§impl PartialEq for WorkOptions
impl PartialEq for WorkOptions
impl StructuralPartialEq for WorkOptions
Auto Trait Implementations§
impl Forget for WorkOptions
impl Freeze for WorkOptions
impl Move for WorkOptions
impl RefUnwindSafe for WorkOptions
impl Send for WorkOptions
impl Sync for WorkOptions
impl Unpin for WorkOptions
impl UnsafeUnpin for WorkOptions
impl UnwindSafe for WorkOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.