Type Alias async_skipdb::equivalent::AsyncStdEquivalentDb
source · pub type AsyncStdEquivalentDb<K, V, S = RandomState> = EquivalentDb<K, V, AsyncStdSpawner, S>;
Available on crate feature
async-std
only.Expand description
Database for async-std
runtime.
Aliased Type§
struct AsyncStdEquivalentDb<K, V, S = RandomState> { /* private fields */ }
Implementations
source§impl<K, V, SP: AsyncSpawner> EquivalentDb<K, V, SP>
impl<K, V, SP: AsyncSpawner> EquivalentDb<K, V, SP>
source§impl<K, V, SP, S> EquivalentDb<K, V, SP, S>
impl<K, V, SP, S> EquivalentDb<K, V, SP, S>
sourcepub async fn write(&self) -> WriteTransaction<K, V, SP, S>
pub async fn write(&self) -> WriteTransaction<K, V, SP, S>
Create a write transaction.
sourcepub async fn write_with_capacity(
&self,
capacity: usize
) -> WriteTransaction<K, V, SP, S>
pub async fn write_with_capacity( &self, capacity: usize ) -> WriteTransaction<K, V, SP, S>
Create a write transaction with the given capacity hint.
source§impl<K, V, SP, S> EquivalentDb<K, V, SP, S>
impl<K, V, SP, S> EquivalentDb<K, V, SP, S>
source§impl<K, V, SP: AsyncSpawner, S> EquivalentDb<K, V, SP, S>
impl<K, V, SP: AsyncSpawner, S> EquivalentDb<K, V, SP, S>
sourcepub async fn with_hasher(hasher: S) -> Self
pub async fn with_hasher(hasher: S) -> Self
Creates a new EquivalentDb
with the given hasher.
sourcepub async fn read(
&self
) -> ReadTransaction<K, V, EquivalentDb<K, V, SP, S>, HashCm<K, S>, SP>
pub async fn read( &self ) -> ReadTransaction<K, V, EquivalentDb<K, V, SP, S>, HashCm<K, S>, SP>
Create a read transaction.