tokio_xmpp: implement IQ tracking

This commit is contained in:
Jonas Schäfer 2025-01-26 11:10:44 +01:00
commit 8a4d548d9a
9 changed files with 399 additions and 32 deletions

View file

@ -184,6 +184,10 @@ impl StanzaToken {
.ok()
}
pub(crate) fn into_stream(self) -> tokio_stream::wrappers::WatchStream<StanzaState> {
tokio_stream::wrappers::WatchStream::new(self.inner)
}
/// Read the current transmission state.
pub fn state(&self) -> StanzaState {
self.inner.borrow().clone()