pub struct IndexLookup { /* private fields */ }Expand description
A resumable index lookup. Fetch status()’s range, then supply its exact
bytes to update. A storage error can be retried without advancing state.
Malformed replies are terminal. There is no allocation or provider callback.
Implementations§
Source§impl IndexLookup
impl IndexLookup
pub fn status(&self) -> Result<LookupStatus>
pub fn update(&mut self, bytes: &[u8]) -> Result<LookupStatus>
Auto Trait Implementations§
impl Freeze for IndexLookup
impl RefUnwindSafe for IndexLookup
impl Send for IndexLookup
impl Sync for IndexLookup
impl Unpin for IndexLookup
impl UnsafeUnpin for IndexLookup
impl UnwindSafe for IndexLookup
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