pub struct HashPool { /* private fields */ }Expand description
A thread pool dedicated to CPU-bound piece hash verification.
Uses tokio::sync::mpsc for async job submission and std::sync::mpsc
internally for the blocking worker threads. Results are sent back via
per-torrent tokio::sync::mpsc::Sender carried in each HashJob.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HashPool
impl !RefUnwindSafe for HashPool
impl Send for HashPool
impl Sync for HashPool
impl Unpin for HashPool
impl UnsafeUnpin for HashPool
impl !UnwindSafe for HashPool
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