Struct libradicl::TempBucket
source · pub struct TempBucket {
pub bucket_id: u32,
pub bucket_writer: Arc<Mutex<BufWriter<File>>>,
pub num_chunks: u32,
pub num_records: u32,
pub num_records_written: AtomicU32,
pub num_bytes_written: AtomicU64,
}
Expand description
Represents a temporary bucket of barcodes whose records will be written together and then collated later in memory.
Fields§
§bucket_id: u32
§bucket_writer: Arc<Mutex<BufWriter<File>>>
§num_chunks: u32
§num_records: u32
§num_records_written: AtomicU32
§num_bytes_written: AtomicU64
Implementations§
source§impl TempBucket
impl TempBucket
pub fn from_id_and_parent(bucket_id: u32, parent: &Path) -> Self
Auto Trait Implementations§
impl RefUnwindSafe for TempBucket
impl Send for TempBucket
impl Sync for TempBucket
impl Unpin for TempBucket
impl UnwindSafe for TempBucket
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