pub struct AsyncProximityReadSession<'map, S: AsyncStore> { /* private fields */ }Expand description
Reusable exact-read context over one immutable async proximity map.
Implementations§
Source§impl<S> AsyncProximityReadSession<'_, S>
impl<S> AsyncProximityReadSession<'_, S>
pub async fn get_with<R>( &mut self, key: &[u8], read: impl for<'record> FnOnce(ProximityRecordRef<'record>) -> R, ) -> Result<Option<R>, Error>
pub async fn get_lease( &mut self, key: &[u8], ) -> Result<Option<OwnedValueLease>, Error>
pub async fn contains_key(&mut self, key: &[u8]) -> Result<bool, Error>
pub async fn scan_records( &mut self, visit: impl for<'record> FnMut(&[u8], ProximityRecordRef<'record>), ) -> Result<u64, Error>
pub async fn scan_records_until<B>( &mut self, visit: impl for<'record> FnMut(&[u8], ProximityRecordRef<'record>) -> ControlFlow<B>, ) -> Result<ScanOutcome<B>, Error>
pub async fn scan_records_range_until<B>( &mut self, start: &[u8], end: Option<&[u8]>, visit: impl for<'record> FnMut(&[u8], ProximityRecordRef<'record>) -> ControlFlow<B>, ) -> Result<ScanOutcome<B>, Error>
Auto Trait Implementations§
impl<'map, S> Freeze for AsyncProximityReadSession<'map, S>where
AsyncReadSession<'map, 'map, S>: Freeze,
impl<'map, S> RefUnwindSafe for AsyncProximityReadSession<'map, S>where
AsyncReadSession<'map, 'map, S>: RefUnwindSafe,
impl<'map, S> Send for AsyncProximityReadSession<'map, S>where
AsyncReadSession<'map, 'map, S>: Send,
impl<'map, S> Sync for AsyncProximityReadSession<'map, S>where
AsyncReadSession<'map, 'map, S>: Sync,
impl<'map, S> Unpin for AsyncProximityReadSession<'map, S>where
AsyncReadSession<'map, 'map, S>: Unpin,
impl<'map, S> UnsafeUnpin for AsyncProximityReadSession<'map, S>where
AsyncReadSession<'map, 'map, S>: UnsafeUnpin,
impl<'map, S> UnwindSafe for AsyncProximityReadSession<'map, S>where
AsyncReadSession<'map, 'map, S>: 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more