#[non_exhaustive]pub struct EnqueueResult {
pub added: Vec<ProcessedRequest>,
pub skipped: Vec<SkippedUrl>,
}Expand description
Result of enqueueing a URL collection.
§Examples
use millipede_core::enqueue::EnqueueResult;
fn accepted_count(result: &EnqueueResult) -> usize {
result.added_count()
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.added: Vec<ProcessedRequest>Newly accepted requests.
skipped: Vec<SkippedUrl>Rejected or duplicate candidates.
Implementations§
Source§impl EnqueueResult
impl EnqueueResult
Sourcepub fn added_count(&self) -> usize
pub fn added_count(&self) -> usize
Number of newly accepted requests.
Sourcepub fn skipped_count(&self) -> usize
pub fn skipped_count(&self) -> usize
Number of skipped candidates.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnqueueResult
impl RefUnwindSafe for EnqueueResult
impl Send for EnqueueResult
impl Sync for EnqueueResult
impl Unpin for EnqueueResult
impl UnsafeUnpin for EnqueueResult
impl UnwindSafe for EnqueueResult
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