pub enum CursorAny<K: TransactionKind> {
Local(Cursor<K>),
Remote(RemoteCursor<K>),
}Variants§
Local(Cursor<K>)
Remote(RemoteCursor<K>)
Implementations§
Source§impl<K: TransactionKind> CursorAny<K>
impl<K: TransactionKind> CursorAny<K>
pub async fn cursor_clone(&self) -> Result<Self, ClientError>
pub async fn first<Key, Value>(
&mut self,
) -> Result<Option<(Key, Value)>, ClientError>where
Key: TableObject,
Value: TableObject,
pub async fn first_dup<Value>(&mut self) -> Result<Option<Value>, ClientError>where
Value: TableObject,
pub async fn get_both<Value>(
&mut self,
k: &[u8],
v: &[u8],
) -> Result<Option<Value>, ClientError>where
Value: TableObject,
pub async fn get_both_range<Value>(
&mut self,
k: &[u8],
v: &[u8],
) -> Result<Option<Value>, ClientError>where
Value: TableObject,
pub async fn get_current<Key, Value>(
&mut self,
) -> Result<Option<(Key, Value)>, ClientError>where
Key: TableObject,
Value: TableObject,
pub async fn get_multiple<Value>(
&mut self,
) -> Result<Option<Value>, ClientError>where
Value: TableObject,
pub async fn last<Key, Value>(
&mut self,
) -> Result<Option<(Key, Value)>, ClientError>where
Key: TableObject,
Value: TableObject,
pub async fn last_dup<Value>(&mut self) -> Result<Option<Value>, ClientError>where
Value: TableObject,
pub async fn next<Key, Value>(
&mut self,
) -> Result<Option<(Key, Value)>, ClientError>where
Key: TableObject,
Value: TableObject,
pub async fn next_dup<Key, Value>(
&mut self,
) -> Result<Option<(Key, Value)>, ClientError>where
Key: TableObject,
Value: TableObject,
pub async fn next_multiple<Key, Value>(
&mut self,
) -> Result<Option<(Key, Value)>, ClientError>where
Key: TableObject,
Value: TableObject,
pub async fn next_nodup<Key, Value>(
&mut self,
) -> Result<Option<(Key, Value)>, ClientError>where
Key: TableObject,
Value: TableObject,
pub async fn prev<Key, Value>(
&mut self,
) -> Result<Option<(Key, Value)>, ClientError>where
Key: TableObject,
Value: TableObject,
pub async fn prev_dup<Key, Value>(
&mut self,
) -> Result<Option<(Key, Value)>, ClientError>where
Key: TableObject,
Value: TableObject,
pub async fn prev_nodup<Key, Value>(
&mut self,
) -> Result<Option<(Key, Value)>, ClientError>where
Key: TableObject,
Value: TableObject,
pub async fn set<Value>(
&mut self,
key: &[u8],
) -> Result<Option<Value>, ClientError>where
Value: TableObject,
pub async fn set_key<Key, Value>(
&mut self,
key: &[u8],
) -> Result<Option<(Key, Value)>, ClientError>where
Key: TableObject,
Value: TableObject,
pub async fn set_range<Key, Value>(
&mut self,
key: &[u8],
) -> Result<Option<(Key, Value)>, ClientError>where
Key: TableObject,
Value: TableObject,
pub async fn prev_multiple<Key, Value>(
&mut self,
) -> Result<Option<(Key, Value)>, ClientError>where
Key: TableObject,
Value: TableObject,
pub async fn set_lowerbound<Key, Value>(
&mut self,
key: &[u8],
) -> Result<Option<(bool, Key, Value)>, ClientError>where
Key: TableObject,
Value: TableObject,
pub fn iter<'a, Key, Value>( &'a mut self, ) -> Pin<Box<dyn Stream<Item = Result<(Key, Value), ClientError>> + Send + 'a>>
pub fn into_iter_buffered<'a, Key, Value>( self, buffer_config: BufferConfiguration, ) -> Pin<Box<dyn Stream<Item = Result<(Key, Value), ClientError>> + Send + 'a>>
pub fn iter_start<'a, Key, Value>( &'a mut self, ) -> Pin<Box<dyn Stream<Item = Result<(Key, Value), ClientError>> + Send + 'a>>
pub fn into_iter_start_buffered<'a, Key, Value>( self, buffer_config: BufferConfiguration, ) -> Pin<Box<dyn Stream<Item = Result<(Key, Value), ClientError>> + Send + 'a>>
pub async fn iter_from<'a, Key, Value>( &'a mut self, key: &[u8], ) -> Result<Pin<Box<dyn Stream<Item = Result<(Key, Value), ClientError>> + Send + 'a>>, ClientError>
pub async fn into_iter_from_buffered<'a, Key, Value>( self, key: &'a [u8], buffer_config: BufferConfiguration, ) -> Result<Pin<Box<dyn Stream<Item = Result<(Key, Value), ClientError>> + Send + 'a>>, ClientError>
pub fn iter_dup<'a, Key, Value>( &'a mut self, ) -> Pin<Box<dyn Stream<Item = Result<Pin<Box<dyn Stream<Item = Result<(Key, Value), ClientError>> + Send + 'a>>, ClientError>> + Send + 'a>>
pub fn into_iter_dup_buffered<'a, Key, Value>( self, buffer_config: BufferConfiguration, ) -> Pin<Box<dyn Stream<Item = Result<Pin<Box<dyn Stream<Item = Result<(Key, Value), ClientError>> + Send + 'a>>, ClientError>> + Send + 'a>>
pub fn iter_dup_start<'a, Key, Value>( &'a mut self, ) -> Pin<Box<dyn Stream<Item = Result<Pin<Box<dyn Stream<Item = Result<(Key, Value), ClientError>> + Send + 'a>>, ClientError>> + Send + 'a>>
pub fn into_iter_dup_start_buffered<'a, Key, Value>( self, buffer_config: BufferConfiguration, ) -> Pin<Box<dyn Stream<Item = Result<Pin<Box<dyn Stream<Item = Result<(Key, Value), ClientError>> + Send + 'a>>, ClientError>> + Send + 'a>>
pub async fn iter_dup_from<'a, Key, Value>( &'a mut self, key: &[u8], ) -> Result<Pin<Box<dyn Stream<Item = Result<Pin<Box<dyn Stream<Item = Result<(Key, Value), ClientError>> + Send + 'a>>, ClientError>> + Send + 'a>>, ClientError>
pub async fn into_iter_dup_from_buffered<'a, Key, Value>( self, key: &'a [u8], buffer_config: BufferConfiguration, ) -> Result<Pin<Box<dyn Stream<Item = Result<Pin<Box<dyn Stream<Item = Result<(Key, Value), ClientError>> + Send + 'a>>, ClientError>> + Send + 'a>>, ClientError>
pub async fn iter_dup_of<'a, Key, Value>( &'a mut self, key: &[u8], ) -> Result<Pin<Box<dyn Stream<Item = Result<(Key, Value), ClientError>> + Send + 'a>>, ClientError>
pub async fn into_iter_dup_of_buffered<'a, Key, Value>( self, key: &'a [u8], buffer_config: BufferConfiguration, ) -> Result<Pin<Box<dyn Stream<Item = Result<(Key, Value), ClientError>> + Send + 'a>>, ClientError>
Source§impl CursorAny<RW>
impl CursorAny<RW>
pub async fn put( &mut self, key: &[u8], data: &[u8], flags: WriteFlags, ) -> Result<(), ClientError>
pub async fn del(&mut self, flags: WriteFlags) -> Result<(), ClientError>
Trait Implementations§
Auto Trait Implementations§
impl<K> Freeze for CursorAny<K>
impl<K> !RefUnwindSafe for CursorAny<K>
impl<K> Send for CursorAny<K>
impl<K> Sync for CursorAny<K>
impl<K> Unpin for CursorAny<K>
impl<K> !UnwindSafe for CursorAny<K>
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