pub struct Counter64(/* private fields */);Expand description
Core runtime types and traits used to define and run a crawl. A 64-bit thread-safe counter for large counts.
Similar to Counter but uses AtomicU64 for larger values.
§Example
ⓘ
use spider_core::state::Counter64;
let counter = Counter64::new();
counter.add(1_000_000_000);
assert_eq!(counter.get(), 1_000_000_000);Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Counter64
impl RefUnwindSafe for Counter64
impl Send for Counter64
impl Sync for Counter64
impl Unpin for Counter64
impl UnsafeUnpin for Counter64
impl UnwindSafe for Counter64
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