CursorAny

Enum CursorAny 

Source
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>

Source

pub async fn cursor_clone(&self) -> Result<Self, ClientError>

Source

pub async fn first<Key, Value>( &mut self, ) -> Result<Option<(Key, Value)>, ClientError>
where Key: TableObject, Value: TableObject,

Source

pub async fn first_dup<Value>(&mut self) -> Result<Option<Value>, ClientError>
where Value: TableObject,

Source

pub async fn get_both<Value>( &mut self, k: &[u8], v: &[u8], ) -> Result<Option<Value>, ClientError>
where Value: TableObject,

Source

pub async fn get_both_range<Value>( &mut self, k: &[u8], v: &[u8], ) -> Result<Option<Value>, ClientError>
where Value: TableObject,

Source

pub async fn get_current<Key, Value>( &mut self, ) -> Result<Option<(Key, Value)>, ClientError>
where Key: TableObject, Value: TableObject,

Source

pub async fn get_multiple<Value>( &mut self, ) -> Result<Option<Value>, ClientError>
where Value: TableObject,

Source

pub async fn last<Key, Value>( &mut self, ) -> Result<Option<(Key, Value)>, ClientError>
where Key: TableObject, Value: TableObject,

Source

pub async fn last_dup<Value>(&mut self) -> Result<Option<Value>, ClientError>
where Value: TableObject,

Source

pub async fn next<Key, Value>( &mut self, ) -> Result<Option<(Key, Value)>, ClientError>
where Key: TableObject, Value: TableObject,

Source

pub async fn next_dup<Key, Value>( &mut self, ) -> Result<Option<(Key, Value)>, ClientError>
where Key: TableObject, Value: TableObject,

Source

pub async fn next_multiple<Key, Value>( &mut self, ) -> Result<Option<(Key, Value)>, ClientError>
where Key: TableObject, Value: TableObject,

Source

pub async fn next_nodup<Key, Value>( &mut self, ) -> Result<Option<(Key, Value)>, ClientError>
where Key: TableObject, Value: TableObject,

Source

pub async fn prev<Key, Value>( &mut self, ) -> Result<Option<(Key, Value)>, ClientError>
where Key: TableObject, Value: TableObject,

Source

pub async fn prev_dup<Key, Value>( &mut self, ) -> Result<Option<(Key, Value)>, ClientError>
where Key: TableObject, Value: TableObject,

Source

pub async fn prev_nodup<Key, Value>( &mut self, ) -> Result<Option<(Key, Value)>, ClientError>
where Key: TableObject, Value: TableObject,

Source

pub async fn set<Value>( &mut self, key: &[u8], ) -> Result<Option<Value>, ClientError>
where Value: TableObject,

Source

pub async fn set_key<Key, Value>( &mut self, key: &[u8], ) -> Result<Option<(Key, Value)>, ClientError>
where Key: TableObject, Value: TableObject,

Source

pub async fn set_range<Key, Value>( &mut self, key: &[u8], ) -> Result<Option<(Key, Value)>, ClientError>
where Key: TableObject, Value: TableObject,

Source

pub async fn prev_multiple<Key, Value>( &mut self, ) -> Result<Option<(Key, Value)>, ClientError>
where Key: TableObject, Value: TableObject,

Source

pub async fn set_lowerbound<Key, Value>( &mut self, key: &[u8], ) -> Result<Option<(bool, Key, Value)>, ClientError>
where Key: TableObject, Value: TableObject,

Source

pub fn iter<'a, Key, Value>( &'a mut self, ) -> Pin<Box<dyn Stream<Item = Result<(Key, Value), ClientError>> + Send + 'a>>
where Key: TableObject + Send + 'a, Value: TableObject + Send + 'a,

Source

pub fn into_iter_buffered<'a, Key, Value>( self, buffer_config: BufferConfiguration, ) -> Pin<Box<dyn Stream<Item = Result<(Key, Value), ClientError>> + Send + 'a>>
where Key: TableObject + Send + 'a, Value: TableObject + Send + 'a,

Source

pub fn iter_start<'a, Key, Value>( &'a mut self, ) -> Pin<Box<dyn Stream<Item = Result<(Key, Value), ClientError>> + Send + 'a>>
where Key: TableObject + Send + 'a, Value: TableObject + Send + 'a,

Source

pub fn into_iter_start_buffered<'a, Key, Value>( self, buffer_config: BufferConfiguration, ) -> Pin<Box<dyn Stream<Item = Result<(Key, Value), ClientError>> + Send + 'a>>
where Key: TableObject + Send + 'a, Value: TableObject + Send + 'a,

Source

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>
where Key: TableObject + Send + 'a, Value: TableObject + Send + 'a,

Source

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>
where Key: TableObject + Send + 'a, Value: TableObject + Send + 'a,

Source

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>>
where Key: TableObject + Send + 'a, Value: TableObject + Send + 'a,

Source

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>>
where Key: TableObject + Send + 'a, Value: TableObject + Send + 'a,

Source

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>>
where Key: TableObject + Send + 'a, Value: TableObject + Send + 'a,

Source

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>>
where Key: TableObject + Send + 'a, Value: TableObject + Send + 'a,

Source

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>
where Key: TableObject + Send + 'a, Value: TableObject + Send + 'a,

Source

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>
where Key: TableObject + Send + 'a, Value: TableObject + Send + 'a,

Source

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>
where Key: TableObject + Send + 'a, Value: TableObject + Send + 'a,

Source

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>
where Key: TableObject + Send + 'a, Value: TableObject + Send + 'a,

Source§

impl CursorAny<RW>

Source

pub async fn put( &mut self, key: &[u8], data: &[u8], flags: WriteFlags, ) -> Result<(), ClientError>

Source

pub async fn del(&mut self, flags: WriteFlags) -> Result<(), ClientError>

Trait Implementations§

Source§

impl<K: Debug + TransactionKind> Debug for CursorAny<K>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,