pub struct LocalContentSnapshot { /* private fields */ }Expand description
Immutable local bytes captured for dirty tracking and upload.
Implementations§
Source§impl LocalContentSnapshot
impl LocalContentSnapshot
Sourcepub const fn new(
item_key: CloudItemKey,
generation: LocalContentGeneration,
reference: LocalContentReference,
size: u64,
digest: Option<ContentDigest>,
) -> Self
pub const fn new( item_key: CloudItemKey, generation: LocalContentGeneration, reference: LocalContentReference, size: u64, digest: Option<ContentDigest>, ) -> Self
Creates a snapshot. The referenced bytes must remain immutable for this generation.
Sourcepub const fn item_key(&self) -> &CloudItemKey
pub const fn item_key(&self) -> &CloudItemKey
Returns the stable item identity whose local bytes were captured.
Sourcepub const fn generation(&self) -> LocalContentGeneration
pub const fn generation(&self) -> LocalContentGeneration
Returns the item-local generation used to fence stale upload completion.
Sourcepub const fn reference(&self) -> &LocalContentReference
pub const fn reference(&self) -> &LocalContentReference
Returns the opaque reference used by the platform/host content reader.
Sourcepub const fn digest(&self) -> Option<&ContentDigest>
pub const fn digest(&self) -> Option<&ContentDigest>
Returns the optional real integrity digest.
Trait Implementations§
Source§impl Clone for LocalContentSnapshot
impl Clone for LocalContentSnapshot
Source§fn clone(&self) -> LocalContentSnapshot
fn clone(&self) -> LocalContentSnapshot
Returns a duplicate of the value. Read more
1.0.0 · 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 LocalContentSnapshot
impl Debug for LocalContentSnapshot
Source§impl PartialEq for LocalContentSnapshot
impl PartialEq for LocalContentSnapshot
impl Eq for LocalContentSnapshot
impl StructuralPartialEq for LocalContentSnapshot
Auto Trait Implementations§
impl Freeze for LocalContentSnapshot
impl RefUnwindSafe for LocalContentSnapshot
impl Send for LocalContentSnapshot
impl Sync for LocalContentSnapshot
impl Unpin for LocalContentSnapshot
impl UnwindSafe for LocalContentSnapshot
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