pub struct RemoteCursor<K: TransactionKind> { /* private fields */ }Implementations§
Source§impl<K: TransactionKind> RemoteCursor<K>
impl<K: TransactionKind> RemoteCursor<K>
pub async fn cur_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: Vec<u8>,
v: Vec<u8>,
) -> Result<Option<Value>, ClientError>where
Value: TableObject,
pub async fn get_both_range<Value>(
&mut self,
k: Vec<u8>,
v: Vec<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: Vec<u8>,
) -> Result<Option<Value>, ClientError>where
Value: TableObject,
pub async fn set_key<Key, Value>(
&mut self,
key: Vec<u8>,
) -> Result<Option<(Key, Value)>, ClientError>where
Key: TableObject,
Value: TableObject,
pub async fn set_range<Key, Value>(
&mut self,
key: Vec<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: Vec<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: Vec<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: Vec<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: Vec<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: Vec<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: Vec<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: Vec<u8>, buffer_config: BufferConfiguration, ) -> Result<Pin<Box<dyn Stream<Item = Result<(Key, Value), ClientError>> + Send + 'a>>, ClientError>
Source§impl RemoteCursor<RW>
impl RemoteCursor<RW>
pub async fn put( &mut self, key: Vec<u8>, data: Vec<u8>, flags: WriteFlags, ) -> Result<(), ClientError>
pub async fn del(&mut self, flags: WriteFlags) -> Result<(), ClientError>
Trait Implementations§
Auto Trait Implementations§
impl<K> Freeze for RemoteCursor<K>
impl<K> !RefUnwindSafe for RemoteCursor<K>
impl<K> Send for RemoteCursor<K>
impl<K> Sync for RemoteCursor<K>
impl<K> Unpin for RemoteCursor<K>
impl<K> !UnwindSafe for RemoteCursor<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