pub struct WorkerOptions {
pub cycle: f64,
pub tier2_period: f64,
pub grace_s: f64,
pub planner: bool,
pub whole_max_bytes: u64,
}Expand description
Static settings of a worker.
Fields§
§cycle: f64Poll period in seconds.
tier2_period: f64Each tier-2 tag is read about this often.
grace_s: f64A tag leaving tier 1 stays at tier 2 this long.
planner: boolRead structs whole when that saves reads.
whole_max_bytes: u64Largest struct the planner reads whole.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WorkerOptions
impl RefUnwindSafe for WorkerOptions
impl Send for WorkerOptions
impl Sync for WorkerOptions
impl Unpin for WorkerOptions
impl UnsafeUnpin for WorkerOptions
impl UnwindSafe 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