mirror of https://gitlab.com/xmpp-rs/xmpp-rs.git
Added doc comment to send_message
This commit is contained in:
parent
ccdf800d12
commit
e5d8d2d561
|
@ -12,6 +12,13 @@ use tokio_xmpp::{
|
|||
|
||||
use crate::agent::TokioXmppClient;
|
||||
|
||||
/// Send a text message to a recipient.
|
||||
///
|
||||
/// # Arguments
|
||||
/// - `client`: The XMPP client to use to send the message.
|
||||
/// - `recipient`: The JID of the recipient.
|
||||
/// - `type_`: The type of the message.
|
||||
/// - `lang`: The language of the message.
|
||||
pub async fn send_message<C: ServerConnector>(
|
||||
client: &mut TokioXmppClient<C>,
|
||||
recipient: Jid,
|
||||
|
|
Loading…
Reference in New Issue