iq: Implement the Iq*Payload traits on every possible payload.

This commit is contained in:
Emmanuel Gil Peyrot 2018-05-16 15:08:17 +02:00
commit 412eafb363
11 changed files with 64 additions and 0 deletions

View file

@ -12,6 +12,7 @@ use minidom::Element;
use error::Error;
use jid::Jid;
use ns;
use iq::{IqSetPayload, IqResultPayload};
#[derive(Debug, Clone, PartialEq)]
pub enum Bind {
@ -29,6 +30,9 @@ impl Bind {
}
}
impl IqSetPayload for Bind {}
impl IqResultPayload for Bind {}
impl TryFrom<Element> for Bind {
type Err = Error;