pub struct TickOptions {
pub max_jobs: usize,
pub budget_ms: i64,
}Expand description
Limits for one tick: at most max_jobs processed, and no new claim
once budget_ms has passed. The defaults (16 jobs, 250 s) fit a
serverless request capped at 300 s.
Fields§
§max_jobs: usize§budget_ms: i64Trait Implementations§
Source§impl Clone for TickOptions
impl Clone for TickOptions
impl Copy for TickOptions
Source§impl Debug for TickOptions
impl Debug for TickOptions
Source§impl Default for TickOptions
impl Default for TickOptions
impl Eq for TickOptions
Source§impl PartialEq for TickOptions
impl PartialEq for TickOptions
impl StructuralPartialEq for TickOptions
Auto Trait Implementations§
impl Forget for TickOptions
impl Freeze for TickOptions
impl Move for TickOptions
impl RefUnwindSafe for TickOptions
impl Send for TickOptions
impl Sync for TickOptions
impl Unpin for TickOptions
impl UnsafeUnpin for TickOptions
impl UnwindSafe for TickOptions
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.