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 get_buckets_count(&self) -> &BucketsCount
pub fn create_matching_multichunks(&self) -> Vec<Mutex<MultiChunkBucket>> ⓘ
pub fn new( size: BucketsCount, path: PathBuf, chunking_size_threshold: Option<u64>, init_data: &B::InitData, format_info: &impl Encode, ) -> MultiThreadBuckets<B>
pub fn get_stored_buckets(&self) -> &Vec<Mutex<MultiChunkBucket>> ⓘ
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]) -> ChunkingStatus
pub fn finalize_single(self: Arc<Self>) -> Vec<SingleBucket>
pub fn finalize(self: Arc<Self>) -> Vec<MultiChunkBucket>
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>
impl<B> Unpin for MultiThreadBuckets<B>
impl<B> UnwindSafe for MultiThreadBuckets<B>
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