pub struct RangeResumeGuard {
pub snapshot_id: SnapshotId,
pub chunk_id: ChunkId,
pub object_identity: String,
pub downloaded_bytes: u64,
}Expand description
Stable identity required before appending bytes to a partial chunk.
Fields§
§snapshot_id: SnapshotId§chunk_id: ChunkId§object_identity: String§downloaded_bytes: u64Implementations§
Source§impl RangeResumeGuard
impl RangeResumeGuard
Sourcepub fn verify(
&self,
snapshot_id: SnapshotId,
descriptor: &ChunkDescriptor,
object_identity: &str,
) -> Result<(), BootstrapError>
pub fn verify( &self, snapshot_id: SnapshotId, descriptor: &ChunkDescriptor, object_identity: &str, ) -> Result<(), BootstrapError>
Verifies a range response still belongs to the same immutable object and stays in bounds.
§Errors
Rejects object drift, wrong chunks, blank identities, or offsets past the object.
Trait Implementations§
Source§impl Clone for RangeResumeGuard
impl Clone for RangeResumeGuard
Source§fn clone(&self) -> RangeResumeGuard
fn clone(&self) -> RangeResumeGuard
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RangeResumeGuard
impl Debug for RangeResumeGuard
impl Eq for RangeResumeGuard
Source§impl PartialEq for RangeResumeGuard
impl PartialEq for RangeResumeGuard
impl StructuralPartialEq for RangeResumeGuard
Auto Trait Implementations§
impl Freeze for RangeResumeGuard
impl RefUnwindSafe for RangeResumeGuard
impl Send for RangeResumeGuard
impl Sync for RangeResumeGuard
impl Unpin for RangeResumeGuard
impl UnsafeUnpin for RangeResumeGuard
impl UnwindSafe for RangeResumeGuard
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