pub struct FsPartSink { /* private fields */ }Expand description
A staged file and incremental subtree hasher. Dropping it removes only this attempt’s temp file; the prior verified part remains intact.
Trait Implementations§
Source§impl Debug for FsPartSink
impl Debug for FsPartSink
Source§impl Drop for FsPartSink
impl Drop for FsPartSink
Source§impl PartSink for FsPartSink
impl PartSink for FsPartSink
Source§async fn write(&mut self, chunk: Bytes) -> Result<(), StoreError>
async fn write(&mut self, chunk: Bytes) -> Result<(), StoreError>
Append a non-empty chunk without exceeding the part’s expected length.
Source§async fn commit(self) -> Result<Vec<u8>, StoreError>
async fn commit(self) -> Result<Vec<u8>, StoreError>
Verify length and subtree CV, then return an opaque backend tag.
A CV mismatch is
StoreError::PartSubtreeMismatch; other invalid
staged state is StoreError::Invalid.Auto Trait Implementations§
impl !RefUnwindSafe for FsPartSink
impl !UnwindSafe for FsPartSink
impl Freeze for FsPartSink
impl Send for FsPartSink
impl Sync for FsPartSink
impl Unpin for FsPartSink
impl UnsafeUnpin for FsPartSink
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