Skip to main content

StorageKeys

Trait StorageKeys 

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

Source

fn keys( self: Arc<Self>, ) -> BoxFuture<'static, Result<HashSet<DialogueKey>, Self::Error>>

Returns the keys of all stored dialogues.

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>

Source§

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

impl<S: Send + Sync + 'static> StorageKeys for SqliteStorage<S>

Available on crate features sqlite-storage-nativetls or sqlite-storage-rustls only.
Source§

impl<S: StorageKeys + Send + Sync + 'static> StorageKeys for TraceStorage<S>