pub struct ProviderPackSpool { /* private fields */ }Expand description
A pre-sized provider pack spool that owns all partial transfer state.
Implementations§
Source§impl ProviderPackSpool
impl ProviderPackSpool
Sourcepub fn new_in(root: &Path, manifest: ProviderPackManifest) -> Result<Self>
pub fn new_in(root: &Path, manifest: ProviderPackManifest) -> Result<Self>
Create an exact-length spool and write the validated virtual pack header.
Sourcepub fn writer(&self) -> ProviderPackWriter
pub fn writer(&self) -> ProviderPackWriter
Obtain a cloneable positional writer for concurrent extent streams.
Sourcepub fn finish(self) -> Result<CompletedProviderPack>
pub fn finish(self) -> Result<CompletedProviderPack>
Finalize the trailer and index after every extent has verified exactly once.
Trait Implementations§
Source§impl Debug for ProviderPackSpool
impl Debug for ProviderPackSpool
Source§impl Drop for ProviderPackSpool
impl Drop for ProviderPackSpool
Auto Trait Implementations§
impl Freeze for ProviderPackSpool
impl RefUnwindSafe for ProviderPackSpool
impl Send for ProviderPackSpool
impl Sync for ProviderPackSpool
impl Unpin for ProviderPackSpool
impl UnsafeUnpin for ProviderPackSpool
impl UnwindSafe for ProviderPackSpool
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