pub struct ContentCacheWriteIntent { /* private fields */ }Expand description
Durable write intent captured before temporary-file or sparse-byte effects.
Implementations§
Source§impl ContentCacheWriteIntent
impl ContentCacheWriteIntent
Sourcepub fn new(
operation_id: ContentCacheWriteOperationId,
cache_key: ContentCacheKey,
expected_size: u64,
extent: ContentCacheWriteExtent,
session_generation: SessionGeneration,
) -> Result<Self>
pub fn new( operation_id: ContentCacheWriteOperationId, cache_key: ContentCacheKey, expected_size: u64, extent: ContentCacheWriteExtent, session_generation: SessionGeneration, ) -> Result<Self>
Creates and validates a revision-bound provider-cache write intent.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub const fn operation_id(&self) -> &ContentCacheWriteOperationId
pub const fn operation_id(&self) -> &ContentCacheWriteOperationId
Returns the durable operation identity.
Sourcepub const fn cache_key(&self) -> &ContentCacheKey
pub const fn cache_key(&self) -> &ContentCacheKey
Returns the exact revision-bound cache identity.
Sourcepub const fn expected_size(&self) -> u64
pub const fn expected_size(&self) -> u64
Returns the expected size of the exact content revision.
Sourcepub const fn extent(&self) -> ContentCacheWriteExtent
pub const fn extent(&self) -> ContentCacheWriteExtent
Returns the logical extent whose physical bytes are installed.
Sourcepub const fn session_generation(&self) -> SessionGeneration
pub const fn session_generation(&self) -> SessionGeneration
Returns the platform session generation that created the write.
Trait Implementations§
Source§impl Clone for ContentCacheWriteIntent
impl Clone for ContentCacheWriteIntent
Source§fn clone(&self) -> ContentCacheWriteIntent
fn clone(&self) -> ContentCacheWriteIntent
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 ContentCacheWriteIntent
impl Debug for ContentCacheWriteIntent
Source§impl PartialEq for ContentCacheWriteIntent
impl PartialEq for ContentCacheWriteIntent
impl Eq for ContentCacheWriteIntent
impl StructuralPartialEq for ContentCacheWriteIntent
Auto Trait Implementations§
impl Freeze for ContentCacheWriteIntent
impl RefUnwindSafe for ContentCacheWriteIntent
impl Send for ContentCacheWriteIntent
impl Sync for ContentCacheWriteIntent
impl Unpin for ContentCacheWriteIntent
impl UnwindSafe for ContentCacheWriteIntent
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