Struct parallel_processor::buckets::MultiThreadBuckets
source · pub struct MultiThreadBuckets<B: LockFreeBucket> { /* private fields */ }
Implementations§
source§impl<B: LockFreeBucket> MultiThreadBuckets<B>
impl<B: LockFreeBucket> MultiThreadBuckets<B>
pub const EMPTY: Self = _
pub fn new( size: usize, path: PathBuf, init_data: &B::InitData, ) -> MultiThreadBuckets<B>
pub fn into_buckets(self) -> impl Iterator<Item = B>
pub fn get_path(&self, bucket: u16) -> PathBuf
pub fn add_data(&self, index: u16, data: &[u8])
pub fn count(&self) -> usize
pub fn finalize(self: Arc<Self>) -> Vec<PathBuf>
Trait Implementations§
source§impl<B: LockFreeBucket> Drop for MultiThreadBuckets<B>
impl<B: LockFreeBucket> Drop for MultiThreadBuckets<B>
impl<B: LockFreeBucket> Send for MultiThreadBuckets<B>
impl<B: LockFreeBucket> Sync for MultiThreadBuckets<B>
Auto Trait Implementations§
impl<B> Freeze for MultiThreadBuckets<B>
impl<B> RefUnwindSafe for MultiThreadBuckets<B>where
B: RefUnwindSafe,
impl<B> Unpin for MultiThreadBuckets<B>where
B: Unpin,
impl<B> UnwindSafe for MultiThreadBuckets<B>where
B: UnwindSafe,
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more