pub struct GenericIndex<E, M, S> { /* private fields */ }
Expand description
Tarantool index of specific space.
This is a wrapper around Executor
, which allow to make index-related requests
on specific index.
Implementations§
Source§impl<E, M, S> GenericIndex<E, M, S>
impl<E, M, S> GenericIndex<E, M, S>
pub fn into_executor(self) -> E
Source§impl<E, M, S> GenericIndex<E, M, S>
impl<E, M, S> GenericIndex<E, M, S>
pub fn executor(&self) -> &E
pub fn metadata(&self) -> &IndexMetadata
pub fn space_metadata(&self) -> &SpaceMetadata
Source§impl<E, M, S> GenericIndex<E, M, S>
impl<E, M, S> GenericIndex<E, M, S>
Sourcepub async fn select<T, A>(
&self,
limit: Option<u32>,
offset: Option<u32>,
iterator: Option<IteratorType>,
keys: A,
) -> Result<Vec<T>>
pub async fn select<T, A>( &self, limit: Option<u32>, offset: Option<u32>, iterator: Option<IteratorType>, keys: A, ) -> Result<Vec<T>>
Call select
on current index.
For details see ExecutorExt::select
.
Sourcepub async fn update<K, O>(&self, keys: K, ops: O) -> Result<DmoResponse>
pub async fn update<K, O>(&self, keys: K, ops: O) -> Result<DmoResponse>
Call update
on current index.
For details see ExecutorExt::update
.
Sourcepub async fn delete<T>(&self, keys: T) -> Result<DmoResponse>
pub async fn delete<T>(&self, keys: T) -> Result<DmoResponse>
Call delete
on current index.
For details see ExecutorExt::delete
.
Trait Implementations§
Auto Trait Implementations§
impl<E, M, S> Freeze for GenericIndex<E, M, S>
impl<E, M, S> RefUnwindSafe for GenericIndex<E, M, S>
impl<E, M, S> Send for GenericIndex<E, M, S>
impl<E, M, S> Sync for GenericIndex<E, M, S>
impl<E, M, S> Unpin for GenericIndex<E, M, S>
impl<E, M, S> UnwindSafe for GenericIndex<E, M, S>
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