First attempt at a documentation.

This commit is contained in:
Emmanuel Gil Peyrot 2017-04-21 01:06:30 +01:00
commit 0da3d55e40
2 changed files with 65 additions and 12 deletions

View file

@ -1,9 +1,31 @@
/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
pub const JABBER_CLIENT: &'static str = "jabber:client";
pub const DISCO_INFO: &'static str = "http://jabber.org/protocol/disco#info";
/// XEP-0004: Data Forms
pub const DATA_FORMS: &'static str = "jabber:x:data";
pub const MEDIA_ELEMENT: &'static str = "urn:xmpp:media-element";
pub const JINGLE: &'static str = "urn:xmpp:jingle:1";
pub const PING: &'static str = "urn:xmpp:ping";
pub const CHATSTATES: &'static str = "http://jabber.org/protocol/chatstates";
/// XEP-0030: Service Discovery
pub const DISCO_INFO: &'static str = "http://jabber.org/protocol/disco#info";
/// XEP-0047: In-Band Bytestreams
pub const IBB: &'static str = "http://jabber.org/protocol/ibb";
/// XEP-0085: Chat State Notifications
pub const CHATSTATES: &'static str = "http://jabber.org/protocol/chatstates";
/// XEP-0166: Jingle
pub const JINGLE: &'static str = "urn:xmpp:jingle:1";
/// XEP-0184: Message Delivery Receipts
pub const RECEIPTS: &'static str = "urn:xmpp:receipts";
/// XEP-0199: XMPP Ping
pub const PING: &'static str = "urn:xmpp:ping";
/// XEP-0221: Data Forms Media Element
pub const MEDIA_ELEMENT: &'static str = "urn:xmpp:media-element";
/// XEP-0390: Entity Capabilities 2.0
pub const ECAPS2: &'static str = "urn:xmpp:caps";
/// XEP-0390: Entity Capabilities 2.0
pub const ECAPS2_OPTIMIZE: &'static str = "urn:xmpp:caps:optimize";