diff options
author | 2024-12-22 18:58:28 +0000 | |
---|---|---|
committer | 2024-12-22 18:58:28 +0000 | |
commit | 6385e43e8ca467e53c6a705a932016c5af75c3a2 (patch) | |
tree | f63fb7bd9a349f24b093ba4dd037c6ce7789f5ee /stanza/src/bind.rs | |
parent | 595d165479b8b12e456f39205d8433b822b07487 (diff) | |
download | luz-6385e43e8ca467e53c6a705a932016c5af75c3a2.tar.gz luz-6385e43e8ca467e53c6a705a932016c5af75c3a2.tar.bz2 luz-6385e43e8ca467e53c6a705a932016c5af75c3a2.zip |
implement sink and stream with tokio::spawn
Diffstat (limited to 'stanza/src/bind.rs')
-rw-r--r-- | stanza/src/bind.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stanza/src/bind.rs b/stanza/src/bind.rs index 155fd1b..63644b1 100644 --- a/stanza/src/bind.rs +++ b/stanza/src/bind.rs @@ -6,7 +6,7 @@ use peanuts::{ pub const XMLNS: &str = "urn:ietf:params:xml:ns:xmpp-bind"; -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct Bind { pub r#type: Option<BindType>, } @@ -28,7 +28,7 @@ impl IntoElement for Bind { } } -#[derive(Clone)] +#[derive(Clone, Debug)] pub enum BindType { Resource(ResourceType), Jid(FullJidType), @@ -56,7 +56,7 @@ impl IntoElement for BindType { } // minLength 8 maxLength 3071 -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct FullJidType(pub JID); impl FromElement for FullJidType { @@ -77,7 +77,7 @@ impl IntoElement for FullJidType { } // minLength 1 maxLength 1023 -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct ResourceType(pub String); impl FromElement for ResourceType { |