Struct teloxide::dispatching::dialogue::InMemStorage
source · pub struct InMemStorage<D> { /* private fields */ }
Expand description
A dialogue storage based on std::collections::HashMap
.
Note
All your dialogues will be lost after you restart your bot. If you need to
store them somewhere on a drive, you should use e.g.
super::SqliteStorage
or implement your own.
Implementations§
Trait Implementations§
source§impl<D: Debug> Debug for InMemStorage<D>
impl<D: Debug> Debug for InMemStorage<D>
source§impl<D> Storage<D> for InMemStorage<D>where
D: Clone + Send + 'static,
impl<D> Storage<D> for InMemStorage<D>where
D: Clone + Send + 'static,
type Error = InMemStorageError
source§fn remove_dialogue(
self: Arc<Self>,
chat_id: ChatId
) -> BoxFuture<'static, Result<(), Self::Error>>where
D: Send + 'static,
fn remove_dialogue(
self: Arc<Self>,
chat_id: ChatId
) -> BoxFuture<'static, Result<(), Self::Error>>where
D: Send + 'static,
Removes a dialogue indexed by
chat_id
. Read more