Trait tc_btree::BTreeWrite [−][src]
pub trait BTreeWrite: BTreeInstance {
fn delete<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId,
range: Range
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn insert<'life0, 'async_trait>(
&'life0 self,
txn_id: TxnId,
key: Key
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn try_insert_from<'life0, 'async_trait, S: Stream<Item = TCResult<Key>> + Send + Unpin>(
&'life0 self,
txn_id: TxnId,
keys: S
) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where
S: 'async_trait,
'life0: 'async_trait,
Self: Sync + 'async_trait,
{ ... }
}
Expand description
BTree
write methods.
Required methods
Delete all the Key
s in this BTree
.
Provided methods
Insert all the keys from the given Stream
into this BTree
.
This will stop and return an error if it encounters an invalid Key
.