pub trait StorageKeys {
type Error;
// Required method
fn keys(
self: Arc<Self>,
) -> BoxFuture<'static, Result<HashSet<DialogueKey>, Self::Error>>;
}Expand description
Optional key enumeration, independent of the dialogue state and serializer.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
Source§impl<D: Send + 'static> StorageKeys for InMemStorage<D>
impl<D: Send + 'static> StorageKeys for InMemStorage<D>
Source§impl<S: Send + Sync + 'static> StorageKeys for PostgresStorage<S>
Available on crate features postgres-storage-nativetls or postgres-storage-rustls only.
impl<S: Send + Sync + 'static> StorageKeys for PostgresStorage<S>
Available on crate features
postgres-storage-nativetls or postgres-storage-rustls only.Source§impl<S: Send + Sync + 'static> StorageKeys for RedisStorage<S>
Available on crate feature redis-storage only.
impl<S: Send + Sync + 'static> StorageKeys for RedisStorage<S>
Available on crate feature
redis-storage only.type Error = RedisStorageError<!>
Source§impl<S: Send + Sync + 'static> StorageKeys for SqliteStorage<S>
Available on crate features sqlite-storage-nativetls or sqlite-storage-rustls only.
impl<S: Send + Sync + 'static> StorageKeys for SqliteStorage<S>
Available on crate features
sqlite-storage-nativetls or sqlite-storage-rustls only.