Struct SchedulerCheckpoint
pub struct SchedulerCheckpoint {
pub request_queue: VecDeque<Request>,
pub salvaged_requests: VecDeque<Request>,
pub visited_urls: DashSet<String>,
}Expand description
Checkpoint types for save/resume workflows. A snapshot of the scheduler’s state.
Fields§
§request_queue: VecDeque<Request>The queue of pending requests.
salvaged_requests: VecDeque<Request>Requests that could not be enqueued and were salvaged.
visited_urls: DashSet<String>The set of visited URL fingerprints.
Trait Implementations§
§impl Clone for SchedulerCheckpoint
impl Clone for SchedulerCheckpoint
§fn clone(&self) -> SchedulerCheckpoint
fn clone(&self) -> SchedulerCheckpoint
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 more§impl Debug for SchedulerCheckpoint
impl Debug for SchedulerCheckpoint
§impl Default for SchedulerCheckpoint
impl Default for SchedulerCheckpoint
§fn default() -> SchedulerCheckpoint
fn default() -> SchedulerCheckpoint
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for SchedulerCheckpoint
impl<'de> Deserialize<'de> for SchedulerCheckpoint
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SchedulerCheckpoint, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SchedulerCheckpoint, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for SchedulerCheckpoint
impl Serialize for SchedulerCheckpoint
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for SchedulerCheckpoint
impl !RefUnwindSafe for SchedulerCheckpoint
impl Send for SchedulerCheckpoint
impl Sync for SchedulerCheckpoint
impl Unpin for SchedulerCheckpoint
impl !UnwindSafe for SchedulerCheckpoint
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