pub struct CheckpointConfig {
pub path: Option<PathBuf>,
pub interval: Option<Duration>,
}Expand description
Configuration for checkpoint save/load operations.
This struct holds settings for automatic checkpoint persistence, allowing crawls to be resumed after interruption.
Fields§
§path: Option<PathBuf>Optional path for saving and loading checkpoints.
interval: Option<Duration>Optional interval between automatic checkpoint saves.
Implementations§
Source§impl CheckpointConfig
impl CheckpointConfig
Sourcepub fn builder() -> CheckpointConfigBuilder
pub fn builder() -> CheckpointConfigBuilder
Creates a new CheckpointConfigBuilder for fluent construction.
Sourcepub fn with_interval(self, interval: Duration) -> Self
pub fn with_interval(self, interval: Duration) -> Self
Sets the checkpoint interval.
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Returns true if checkpointing is enabled.
Trait Implementations§
Source§impl Clone for CheckpointConfig
impl Clone for CheckpointConfig
Source§fn clone(&self) -> CheckpointConfig
fn clone(&self) -> CheckpointConfig
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 CheckpointConfig
impl Debug for CheckpointConfig
Source§impl Default for CheckpointConfig
impl Default for CheckpointConfig
Source§fn default() -> CheckpointConfig
fn default() -> CheckpointConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CheckpointConfig
impl RefUnwindSafe for CheckpointConfig
impl Send for CheckpointConfig
impl Sync for CheckpointConfig
impl Unpin for CheckpointConfig
impl UnsafeUnpin for CheckpointConfig
impl UnwindSafe for CheckpointConfig
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