ns: Remove now useless 'static lifetime.

This commit is contained in:
Emmanuel Gil Peyrot 2017-06-12 22:49:27 +01:00
parent c74e72b676
commit 9955c1131b

View file

@ -6,108 +6,108 @@
// file, You can obtain one at http://mozilla.org/MPL/2.0/. // file, You can obtain one at http://mozilla.org/MPL/2.0/.
/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core /// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
pub const JABBER_CLIENT: &'static str = "jabber:client"; pub const JABBER_CLIENT: &str = "jabber:client";
/// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core /// RFC 6120: Extensible Messaging and Presence Protocol (XMPP): Core
pub const XMPP_STANZAS: &'static str = "urn:ietf:params:xml:ns:xmpp-stanzas"; pub const XMPP_STANZAS: &str = "urn:ietf:params:xml:ns:xmpp-stanzas";
/// RFC 6121: Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence /// RFC 6121: Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence
pub const ROSTER: &'static str = "jabber:iq:roster"; pub const ROSTER: &str = "jabber:iq:roster";
/// XEP-0004: Data Forms /// XEP-0004: Data Forms
pub const DATA_FORMS: &'static str = "jabber:x:data"; pub const DATA_FORMS: &str = "jabber:x:data";
/// XEP-0030: Service Discovery /// XEP-0030: Service Discovery
pub const DISCO_INFO: &'static str = "http://jabber.org/protocol/disco#info"; pub const DISCO_INFO: &str = "http://jabber.org/protocol/disco#info";
/// XEP-0045: Multi-User Chat /// XEP-0045: Multi-User Chat
pub const MUC: &'static str = "http://jabber.org/protocol/muc"; pub const MUC: &str = "http://jabber.org/protocol/muc";
/// XEP-0045: Multi-User Chat /// XEP-0045: Multi-User Chat
pub const MUC_USER: &'static str = "http://jabber.org/protocol/muc#user"; pub const MUC_USER: &str = "http://jabber.org/protocol/muc#user";
/// XEP-0047: In-Band Bytestreams /// XEP-0047: In-Band Bytestreams
pub const IBB: &'static str = "http://jabber.org/protocol/ibb"; pub const IBB: &str = "http://jabber.org/protocol/ibb";
/// XEP-0059: Result Set Management /// XEP-0059: Result Set Management
pub const RSM: &'static str = "http://jabber.org/protocol/rsm"; pub const RSM: &str = "http://jabber.org/protocol/rsm";
/// XEP-0060: Publish-Subscribe /// XEP-0060: Publish-Subscribe
pub const PUBSUB: &'static str = "http://jabber.org/protocol/pubsub"; pub const PUBSUB: &str = "http://jabber.org/protocol/pubsub";
/// XEP-0060: Publish-Subscribe /// XEP-0060: Publish-Subscribe
pub const PUBSUB_ERRORS: &'static str = "http://jabber.org/protocol/pubsub#errors"; pub const PUBSUB_ERRORS: &str = "http://jabber.org/protocol/pubsub#errors";
/// XEP-0060: Publish-Subscribe /// XEP-0060: Publish-Subscribe
pub const PUBSUB_EVENT: &'static str = "http://jabber.org/protocol/pubsub#event"; pub const PUBSUB_EVENT: &str = "http://jabber.org/protocol/pubsub#event";
/// XEP-0060: Publish-Subscribe /// XEP-0060: Publish-Subscribe
pub const PUBSUB_OWNER: &'static str = "http://jabber.org/protocol/pubsub#owner"; pub const PUBSUB_OWNER: &str = "http://jabber.org/protocol/pubsub#owner";
/// XEP-0085: Chat State Notifications /// XEP-0085: Chat State Notifications
pub const CHATSTATES: &'static str = "http://jabber.org/protocol/chatstates"; pub const CHATSTATES: &str = "http://jabber.org/protocol/chatstates";
/// XEP-0115: Entity Capabilities /// XEP-0115: Entity Capabilities
pub const CAPS: &'static str = "http://jabber.org/protocol/caps"; pub const CAPS: &str = "http://jabber.org/protocol/caps";
/// XEP-0166: Jingle /// XEP-0166: Jingle
pub const JINGLE: &'static str = "urn:xmpp:jingle:1"; pub const JINGLE: &str = "urn:xmpp:jingle:1";
/// XEP-0184: Message Delivery Receipts /// XEP-0184: Message Delivery Receipts
pub const RECEIPTS: &'static str = "urn:xmpp:receipts"; pub const RECEIPTS: &str = "urn:xmpp:receipts";
/// XEP-0199: XMPP Ping /// XEP-0199: XMPP Ping
pub const PING: &'static str = "urn:xmpp:ping"; pub const PING: &str = "urn:xmpp:ping";
/// XEP-0203: Delayed Delivery /// XEP-0203: Delayed Delivery
pub const DELAY: &'static str = "urn:xmpp:delay"; pub const DELAY: &str = "urn:xmpp:delay";
/// XEP-0221: Data Forms Media Element /// XEP-0221: Data Forms Media Element
pub const MEDIA_ELEMENT: &'static str = "urn:xmpp:media-element"; pub const MEDIA_ELEMENT: &str = "urn:xmpp:media-element";
/// XEP-0224: Attention /// XEP-0224: Attention
pub const ATTENTION: &'static str = "urn:xmpp:attention:0"; pub const ATTENTION: &str = "urn:xmpp:attention:0";
/// XEP-0234: Jingle File Transfer /// XEP-0234: Jingle File Transfer
pub const JINGLE_FT: &'static str = "urn:xmpp:jingle:apps:file-transfer:5"; pub const JINGLE_FT: &str = "urn:xmpp:jingle:apps:file-transfer:5";
/// XEP-0234: Jingle File Transfer /// XEP-0234: Jingle File Transfer
pub const JINGLE_FT_ERROR: &'static str = "urn:xmpp:jingle:apps:file-transfer:errors:0"; pub const JINGLE_FT_ERROR: &str = "urn:xmpp:jingle:apps:file-transfer:errors:0";
/// XEP-0260: Jingle SOCKS5 Bytestreams Transport Method /// XEP-0260: Jingle SOCKS5 Bytestreams Transport Method
pub const JINGLE_S5B: &'static str = "urn:xmpp:jingle:transports:s5b:1"; pub const JINGLE_S5B: &str = "urn:xmpp:jingle:transports:s5b:1";
/// XEP-0261: Jingle In-Band Bytestreams Transport Method /// XEP-0261: Jingle In-Band Bytestreams Transport Method
pub const JINGLE_IBB: &'static str = "urn:xmpp:jingle:transports:ibb:1"; pub const JINGLE_IBB: &str = "urn:xmpp:jingle:transports:ibb:1";
/// XEP-0297: Stanza Forwarding /// XEP-0297: Stanza Forwarding
pub const FORWARD: &'static str = "urn:xmpp:forward:0"; pub const FORWARD: &str = "urn:xmpp:forward:0";
/// XEP-0300: Use of Cryptographic Hash Functions in XMPP /// XEP-0300: Use of Cryptographic Hash Functions in XMPP
pub const HASHES: &'static str = "urn:xmpp:hashes:2"; pub const HASHES: &str = "urn:xmpp:hashes:2";
/// XEP-0300: Use of Cryptographic Hash Functions in XMPP /// XEP-0300: Use of Cryptographic Hash Functions in XMPP
pub const HASH_ALGO_SHA_256: &'static str = "urn:xmpp:hash-function-text-names:sha-256"; pub const HASH_ALGO_SHA_256: &str = "urn:xmpp:hash-function-text-names:sha-256";
/// XEP-0300: Use of Cryptographic Hash Functions in XMPP /// XEP-0300: Use of Cryptographic Hash Functions in XMPP
pub const HASH_ALGO_SHA_512: &'static str = "urn:xmpp:hash-function-text-names:sha-512"; pub const HASH_ALGO_SHA_512: &str = "urn:xmpp:hash-function-text-names:sha-512";
/// XEP-0300: Use of Cryptographic Hash Functions in XMPP /// XEP-0300: Use of Cryptographic Hash Functions in XMPP
pub const HASH_ALGO_SHA3_256: &'static str = "urn:xmpp:hash-function-text-names:sha3-256"; pub const HASH_ALGO_SHA3_256: &str = "urn:xmpp:hash-function-text-names:sha3-256";
/// XEP-0300: Use of Cryptographic Hash Functions in XMPP /// XEP-0300: Use of Cryptographic Hash Functions in XMPP
pub const HASH_ALGO_SHA3_512: &'static str = "urn:xmpp:hash-function-text-names:sha3-512"; pub const HASH_ALGO_SHA3_512: &str = "urn:xmpp:hash-function-text-names:sha3-512";
/// XEP-0300: Use of Cryptographic Hash Functions in XMPP /// XEP-0300: Use of Cryptographic Hash Functions in XMPP
pub const HASH_ALGO_BLAKE2B_256: &'static str = "urn:xmpp:hash-function-text-names:id-blake2b256"; pub const HASH_ALGO_BLAKE2B_256: &str = "urn:xmpp:hash-function-text-names:id-blake2b256";
/// XEP-0300: Use of Cryptographic Hash Functions in XMPP /// XEP-0300: Use of Cryptographic Hash Functions in XMPP
pub const HASH_ALGO_BLAKE2B_512: &'static str = "urn:xmpp:hash-function-text-names:id-blake2b512"; pub const HASH_ALGO_BLAKE2B_512: &str = "urn:xmpp:hash-function-text-names:id-blake2b512";
/// XEP-0308: Last Message Correction /// XEP-0308: Last Message Correction
pub const MESSAGE_CORRECT: &'static str = "urn:xmpp:message-correct:0"; pub const MESSAGE_CORRECT: &str = "urn:xmpp:message-correct:0";
/// XEP-0313: Message Archive Management /// XEP-0313: Message Archive Management
pub const MAM: &'static str = "urn:xmpp:mam:2"; pub const MAM: &str = "urn:xmpp:mam:2";
/// XEP-0319: Last User Interaction in Presence /// XEP-0319: Last User Interaction in Presence
pub const IDLE: &'static str = "urn:xmpp:idle:1"; pub const IDLE: &str = "urn:xmpp:idle:1";
/// XEP-0359: Unique and Stable Stanza IDs /// XEP-0359: Unique and Stable Stanza IDs
pub const SID: &'static str = "urn:xmpp:sid:0"; pub const SID: &str = "urn:xmpp:sid:0";
/// XEP-0380: Explicit Message Encryption /// XEP-0380: Explicit Message Encryption
pub const EME: &'static str = "urn:xmpp:eme:0"; pub const EME: &str = "urn:xmpp:eme:0";
/// XEP-0390: Entity Capabilities 2.0 /// XEP-0390: Entity Capabilities 2.0
pub const ECAPS2: &'static str = "urn:xmpp:caps"; pub const ECAPS2: &str = "urn:xmpp:caps";
/// XEP-0390: Entity Capabilities 2.0 /// XEP-0390: Entity Capabilities 2.0
pub const ECAPS2_OPTIMIZE: &'static str = "urn:xmpp:caps:optimize"; pub const ECAPS2_OPTIMIZE: &str = "urn:xmpp:caps:optimize";