pub struct DecodedReadResult<T> { /* private fields */ }Expand description
Owned logical-read result after backend leases have been decoded by an adapter.
This projection keeps storage navigation semantics in the storage boundary while allowing the
caller to own decoded records. None records remain distinct from a successful read containing
an empty record collection.
Implementations§
Source§impl<T> DecodedReadResult<T>
impl<T> DecodedReadResult<T>
Sourcepub fn new<R>(
status: GetStatus,
next_begin_offset: i64,
min_offset: i64,
max_offset: i64,
records: R,
) -> Self
pub fn new<R>( status: GetStatus, next_begin_offset: i64, min_offset: i64, max_offset: i64, records: R, ) -> Self
Creates an owned read result from canonical store navigation fields.
Sourcepub const fn next_begin_offset(&self) -> i64
pub const fn next_begin_offset(&self) -> i64
Returns the next logical offset suggested by the store.
Sourcepub const fn min_offset(&self) -> i64
pub const fn min_offset(&self) -> i64
Returns the minimum readable logical offset.
Sourcepub const fn max_offset(&self) -> i64
pub const fn max_offset(&self) -> i64
Returns the maximum logical offset observed by the store.
Sourcepub fn into_records(self) -> Option<Vec<T>>
pub fn into_records(self) -> Option<Vec<T>>
Consumes the result and returns its decoded records.
Trait Implementations§
Source§impl<T: Clone> Clone for DecodedReadResult<T>
impl<T: Clone> Clone for DecodedReadResult<T>
Source§impl<T: Debug> Debug for DecodedReadResult<T>
impl<T: Debug> Debug for DecodedReadResult<T>
impl<T: Eq> Eq for DecodedReadResult<T>
Source§impl<T: PartialEq> PartialEq for DecodedReadResult<T>
impl<T: PartialEq> PartialEq for DecodedReadResult<T>
impl<T: PartialEq> StructuralPartialEq for DecodedReadResult<T>
Auto Trait Implementations§
impl<T> Forget for DecodedReadResult<T>
impl<T> Freeze for DecodedReadResult<T>
impl<T> Move for DecodedReadResult<T>
impl<T> RefUnwindSafe for DecodedReadResult<T>where
T: RefUnwindSafe,
impl<T> Send for DecodedReadResult<T>
impl<T> Sync for DecodedReadResult<T>
impl<T> Unpin for DecodedReadResult<T>
impl<T> UnsafeUnpin for DecodedReadResult<T>
impl<T> UnwindSafe for DecodedReadResult<T>where
RawVecInner: UnwindSafe,
T: 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