pub struct IndependentDatasetBuilder { /* private fields */ }Expand description
Builder that creates datasets without locking the file header.
Each IndependentDatasetBuilder accumulates its own MetadataBlock
independently. On IndependentDatasetBuilder::finish, the block is
returned for later merging.
Thread-safety: each thread should own its own builder instance.
Implementations§
Source§impl IndependentDatasetBuilder
impl IndependentDatasetBuilder
Sourcepub fn new(creator_id: u32) -> Self
pub fn new(creator_id: u32) -> Self
Create a new independent builder with the given creator id.
Sourcepub fn add_dataset(&mut self, meta: DatasetMetadata)
pub fn add_dataset(&mut self, meta: DatasetMetadata)
Add a dataset specification to this builder.
Sourcepub fn finish(self) -> MetadataBlock
pub fn finish(self) -> MetadataBlock
Consume the builder and return the metadata block.
Auto Trait Implementations§
impl Freeze for IndependentDatasetBuilder
impl RefUnwindSafe for IndependentDatasetBuilder
impl Send for IndependentDatasetBuilder
impl Sync for IndependentDatasetBuilder
impl Unpin for IndependentDatasetBuilder
impl UnsafeUnpin for IndependentDatasetBuilder
impl UnwindSafe for IndependentDatasetBuilder
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