tokio_xmpp: implement IQ tracking
This commit is contained in:
parent
ef9d0a95ff
commit
8a4d548d9a
9 changed files with 399 additions and 32 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue