Struct ark_api::storage::LazyInsertHandle
source · pub struct LazyInsertHandle { /* private fields */ }Expand description
Handle to a lazy insert request for AsyncStores.
Can be consumed as a Future or manually with the is_ready and take methods.
Implementations§
source§impl LazyInsertHandle
impl LazyInsertHandle
sourcepub fn is_ready(&mut self) -> bool
pub fn is_ready(&mut self) -> bool
Checks if the request is done or not.
Polls in the background, if necessary.
sourcepub fn take(self) -> ConditionalInsertStatus
pub fn take(self) -> ConditionalInsertStatus
Consumes the handle and returns the underlying insert result.
Return true if the operation was successful.
Panics
This will panic if is_ready() hasn’t returned true yet.
Trait Implementations§
source§impl Future for LazyInsertHandle
impl Future for LazyInsertHandle
Auto Trait Implementations§
impl RefUnwindSafe for LazyInsertHandle
impl Send for LazyInsertHandle
impl Sync for LazyInsertHandle
impl Unpin for LazyInsertHandle
impl UnwindSafe for LazyInsertHandle
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<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere F: Future,
§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more