pub trait BucketSource:
Send
+ Sync
+ 'static {
type Bucket: Send + Sync;
type K: Send + Sync;
type V: Send + Sync;
type All: Stream<Item = Result<(Self::K, Self::V), Status>> + Send + Unpin + 'static;
// Required method
fn get_all_by_bucket<'life0, 'async_trait>(
&'life0 self,
b: Self::Bucket,
) -> Pin<Box<dyn Future<Output = Result<Self::All, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Source of buckets(a bucket has key/val pairs)
Required Associated Types§
type Bucket: Send + Sync
type K: Send + Sync
type V: Send + Sync
type All: Stream<Item = Result<(Self::K, Self::V), Status>> + Send + Unpin + 'static
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".