From 61644e55579ffac514a1cc58955630fe18551f03 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Tue, 31 Jul 2018 23:09:53 +0200 Subject: [PATCH] ping: Document this module. --- src/ping.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ping.rs b/src/ping.rs index c2f0a440..845ec189 100644 --- a/src/ping.rs +++ b/src/ping.rs @@ -5,9 +5,15 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +#![deny(missing_docs)] + use iq::IqGetPayload; -generate_empty_element!(Ping, "ping", PING); +generate_empty_element!( + /// Represents a ping to the recipient, which must be answered with an + /// empty `` or with an error. + Ping, "ping", PING +); impl IqGetPayload for Ping {}