pub struct QueueOptions {
pub retry_after: Vec<Duration>,
pub threads: usize,
pub save_to: Option<PathBuf>,
pub capacity: usize,
pub noun: &'static str,
}Fields§
§retry_after: Vec<Duration>How long to wait before each retry; after the last, the call fails.
threads: usizeCalls worked on at once.
save_to: Option<PathBuf>Where to save calls still waiting at shutdown (None: they fail).
capacity: usizeCalls waiting beyond this are refused (reported as failed).
noun: &'static strA name for the status line, e.g. “upload” → “3 uploads waiting to retry”.
Implementations§
Trait Implementations§
Source§impl Clone for QueueOptions
impl Clone for QueueOptions
Source§impl Debug for QueueOptions
impl Debug for QueueOptions
Auto Trait Implementations§
impl Freeze for QueueOptions
impl RefUnwindSafe for QueueOptions
impl Send for QueueOptions
impl Sync for QueueOptions
impl Unpin for QueueOptions
impl UnsafeUnpin for QueueOptions
impl UnwindSafe for QueueOptions
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