pub struct TaskDefaults {
pub priority: i32,
pub pool: &'static str,
pub retry: RetryPolicy,
pub rate: RateLimitPolicy,
}Expand description
Default retry, rate, priority, and pool settings for a registered task.
Fields§
§priority: i32Default priority (lower = higher priority).
pool: &'static strDefault pool name.
retry: RetryPolicyDefault retry policy.
rate: RateLimitPolicyDefault enqueue rate limits.
Implementations§
Source§impl TaskDefaults
impl TaskDefaults
Trait Implementations§
Source§impl Clone for TaskDefaults
impl Clone for TaskDefaults
Source§fn clone(&self) -> TaskDefaults
fn clone(&self) -> TaskDefaults
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 moreimpl Copy for TaskDefaults
Auto Trait Implementations§
impl Freeze for TaskDefaults
impl RefUnwindSafe for TaskDefaults
impl Send for TaskDefaults
impl Sync for TaskDefaults
impl Unpin for TaskDefaults
impl UnsafeUnpin for TaskDefaults
impl UnwindSafe for TaskDefaults
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