mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
Exposed bound_jid on Agent.
This commit is contained in:
parent
3f90e84c5b
commit
e36b8d4fb9
1 changed files with 7 additions and 0 deletions
|
@ -104,4 +104,11 @@ impl<C: ServerConnector> Agent<C> {
|
||||||
pub async fn upload_file_with(&mut self, service: &str, path: &Path) {
|
pub async fn upload_file_with(&mut self, service: &str, path: &Path) {
|
||||||
upload::send::upload_file_with(self, service, path).await
|
upload::send::upload_file_with(self, service, path).await
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Get the bound jid of the client.
|
||||||
|
///
|
||||||
|
/// If the client is not connected, this will be None.
|
||||||
|
pub fn bound_jid(&self) -> Option<&Jid> {
|
||||||
|
self.client.bound_jid()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue