diff options
author | cel 🌸 <cel@blos.sm> | 2023-08-02 18:21:57 +0100 |
---|---|---|
committer | cel 🌸 <cel@blos.sm> | 2023-08-02 18:21:57 +0100 |
commit | 2a7b8834d750a312eef34ad50d56d49bc9a9341e (patch) | |
tree | ec53a008b9bf2a4d88e94250cfd375d4657487ea /src/client/encrypted.rs | |
parent | cd7bb95c0a31d187bfe25bad15043f0b33b111cf (diff) | |
download | luz-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.rs | 7 |
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()); |