pub struct SelectResult<L> { /* private fields */ }Expand description
One selected physical byte range coupled to its backend lease.
Implementations§
Source§impl<L> SelectResult<L>
impl<L> SelectResult<L>
Sourcepub const fn new(
start_offset: u64,
data: LeasedBytes<L>,
cache_state: ReadCacheState,
) -> Self
pub const fn new( start_offset: u64, data: LeasedBytes<L>, cache_state: ReadCacheState, ) -> Self
Creates a selected range from neutral bytes and location metadata.
Sourcepub const fn start_offset(&self) -> u64
pub const fn start_offset(&self) -> u64
Returns the physical start offset.
Sourcepub const fn data(&self) -> &LeasedBytes<L>
pub const fn data(&self) -> &LeasedBytes<L>
Returns the leased data.
Sourcepub fn into_data(self) -> LeasedBytes<L>
pub fn into_data(self) -> LeasedBytes<L>
Consumes the selected result and returns its leased data.
Sourcepub const fn cache_state(&self) -> ReadCacheState
pub const fn cache_state(&self) -> ReadCacheState
Returns the neutral cache observation.
Trait Implementations§
Auto Trait Implementations§
impl<L> !Freeze for SelectResult<L>
impl<L> Forget for SelectResult<L>
impl<L> Move for SelectResult<L>
impl<L> RefUnwindSafe for SelectResult<L>
impl<L> Send for SelectResult<L>
impl<L> Sync for SelectResult<L>
impl<L> Unpin for SelectResult<L>
impl<L> UnsafeUnpin for SelectResult<L>where
*const u8: UnsafeUnpin,
Align8<*mut ()>: UnsafeUnpin,
&'static Vtable: UnsafeUnpin,
L: UnsafeUnpin,
impl<L> UnwindSafe for SelectResult<L>where
*const u8: UnwindSafe,
Align8<*mut ()>: UnwindSafe,
&'static Vtable: UnwindSafe,
L: UnwindSafe,
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