pub struct HydrationRequest { /* private fields */ }Expand description
One logical hydration request plus the physical alignment required by its adapter boundary.
Implementations§
Source§impl HydrationRequest
impl HydrationRequest
Sourcepub const fn new(
read: ContentReadRequest,
alignment: Alignment,
session_generation: SessionGeneration,
) -> Self
pub const fn new( read: ContentReadRequest, alignment: Alignment, session_generation: SessionGeneration, ) -> Self
Creates a hydration request from an exact content read and physical transfer alignment.
Sourcepub const fn whole(
key: CloudItemKey,
revision: ContentRevision,
expected_size: u64,
session_generation: SessionGeneration,
) -> Self
pub const fn whole( key: CloudItemKey, revision: ContentRevision, expected_size: u64, session_generation: SessionGeneration, ) -> Self
Creates a complete-file hydration request.
Sourcepub const fn range(
key: CloudItemKey,
revision: ContentRevision,
expected_size: u64,
range: ByteRange,
alignment: Alignment,
session_generation: SessionGeneration,
) -> Self
pub const fn range( key: CloudItemKey, revision: ContentRevision, expected_size: u64, range: ByteRange, alignment: Alignment, session_generation: SessionGeneration, ) -> Self
Creates a range hydration request with adapter-owned physical alignment.
Sourcepub const fn read(&self) -> &ContentReadRequest
pub const fn read(&self) -> &ContentReadRequest
Returns the exact logical content request.
Sourcepub const fn alignment(&self) -> Alignment
pub const fn alignment(&self) -> Alignment
Returns the physical range alignment owned by the active adapter boundary.
Sourcepub const fn session_generation(&self) -> SessionGeneration
pub const fn session_generation(&self) -> SessionGeneration
Returns the platform session generation that owns this waiter and its completion.
Trait Implementations§
Source§impl Clone for HydrationRequest
impl Clone for HydrationRequest
Source§fn clone(&self) -> HydrationRequest
fn clone(&self) -> HydrationRequest
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 HydrationRequest
impl Debug for HydrationRequest
Source§impl PartialEq for HydrationRequest
impl PartialEq for HydrationRequest
impl Eq for HydrationRequest
impl StructuralPartialEq for HydrationRequest
Auto Trait Implementations§
impl Freeze for HydrationRequest
impl RefUnwindSafe for HydrationRequest
impl Send for HydrationRequest
impl Sync for HydrationRequest
impl Unpin for HydrationRequest
impl UnwindSafe for HydrationRequest
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