pub struct TransferSession<'a> { /* private fields */ }Expand description
Exclusive mutable resumable state for one object.
Implementations§
Source§impl TransferSession<'_>
impl TransferSession<'_>
Sourcepub fn descriptor(&self) -> &ObjectDescriptor
pub fn descriptor(&self) -> &ObjectDescriptor
Exact admitted descriptor.
Sourcepub fn accept(&mut self, index: usize, bytes: &[u8]) -> TransferResult<()>
pub fn accept(&mut self, index: usize, bytes: &[u8]) -> TransferResult<()>
Verifies a block before exclusively staging, syncing and atomically publishing. An identical persisted block is an idempotent no-op.
Sourcepub fn finish(self) -> TransferResult<VerifiedObject>
pub fn finish(self) -> TransferResult<VerifiedObject>
Publishes only after every block and full-object digest match. Failure never marks incomplete content as complete. A post-rename directory-sync error may leave complete bytes visible; retry/reopen revalidates before returning them.
Sourcepub fn finish_with_control(
self,
control: &TransferControl,
) -> TransferResult<VerifiedObject>
pub fn finish_with_control( self, control: &TransferControl, ) -> TransferResult<VerifiedObject>
Cooperatively checks cancellation between bounded assembly/hash operations. Filesystem calls still require deployment-owned I/O bounds.
Auto Trait Implementations§
impl<'a> !UnwindSafe for TransferSession<'a>
impl<'a> Freeze for TransferSession<'a>
impl<'a> RefUnwindSafe for TransferSession<'a>
impl<'a> Send for TransferSession<'a>
impl<'a> Sync for TransferSession<'a>
impl<'a> Unpin for TransferSession<'a>
impl<'a> UnsafeUnpin for TransferSession<'a>
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