pub struct WaitOptions {
pub poll_interval: Duration,
pub max_wait: Option<Duration>,
pub verbose: bool,
pub allow_cancelled: bool,
}Expand description
Polling options for Crawl::wait.
Fields§
§poll_interval: DurationHow often to poll (default 5s).
max_wait: Option<Duration>Optional deadline; None means wait forever.
verbose: boolVerbose logging (currently a no-op — reserved for future use).
allow_cancelled: boolReturn Ok(()) instead of CrawlerCancelled when the job
terminates in the CANCELLED state. Useful for the
cancel-then-wait pattern.
Trait Implementations§
Source§impl Clone for WaitOptions
impl Clone for WaitOptions
Source§fn clone(&self) -> WaitOptions
fn clone(&self) -> WaitOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WaitOptions
impl Debug for WaitOptions
Auto Trait Implementations§
impl Freeze for WaitOptions
impl RefUnwindSafe for WaitOptions
impl Send for WaitOptions
impl Sync for WaitOptions
impl Unpin for WaitOptions
impl UnsafeUnpin for WaitOptions
impl UnwindSafe for WaitOptions
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