summaryrefslogtreecommitdiffstats
path: root/src/client/encrypted.rs
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2023-08-02 18:21:57 +0100
committerLibravatar cel 🌸 <cel@blos.sm>2023-08-02 18:21:57 +0100
commit2a7b8834d750a312eef34ad50d56d49bc9a9341e (patch)
treeec53a008b9bf2a4d88e94250cfd375d4657487ea /src/client/encrypted.rs
parentcd7bb95c0a31d187bfe25bad15043f0b33b111cf (diff)
downloadluz-2a7b8834d750a312eef34ad50d56d49bc9a9341e.tar.gz
luz-2a7b8834d750a312eef34ad50d56d49bc9a9341e.tar.bz2
luz-2a7b8834d750a312eef34ad50d56d49bc9a9341e.zip
WIP: refactor Element type
Diffstat (limited to 'src/client/encrypted.rs')
-rw-r--r--src/client/encrypted.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/encrypted.rs b/src/client/encrypted.rs
index 86aba13..03ae295 100644
--- a/src/client/encrypted.rs
+++ b/src/client/encrypted.rs
@@ -85,6 +85,13 @@ impl<'j> JabberClient<'j> {
}
}
+ pub async fn watch(&mut self) -> Result<()> {
+ loop {
+ let element = Element::read(&mut self.reader).await?;
+ println!("{:#?}", element);
+ }
+ }
+
pub async fn sasl(&mut self, mechanisms: &Vec<String>) -> Result<()> {
println!("{:?}", mechanisms);
let sasl = SASLClient::new(self.jabber.auth.clone());