tokio-xmpp: rename OneshotClient to SimpleClient

This commit is contained in:
Astro 2020-05-30 00:03:17 +02:00
parent 3e2b51f148
commit eb13634571
4 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@ use std::env::args;
use std::process::exit;
use std::str::FromStr;
use tokio;
use tokio_xmpp::OneshotClient as Client;
use tokio_xmpp::SimpleClient as Client;
use xmpp_parsers::message::{Body, Message};
use xmpp_parsers::Jid;

View file

@ -23,7 +23,7 @@ use auth::auth;
mod bind;
use bind::bind;
pub mod oneshot_client;
pub mod simple_client;
pub const NS_XMPP_SASL: &str = "urn:ietf:params:xml:ns:xmpp-sasl";
pub const NS_XMPP_BIND: &str = "urn:ietf:params:xml:ns:xmpp-bind";

View file

@ -16,7 +16,7 @@ use crate::{Error, ProtocolError};
use super::auth::auth;
use super::bind::bind;
/// XMPP client connection and state
/// A simple XMPP client connection
///
/// This implements the `futures` crate's [`Stream`](#impl-Stream) and
/// [`Sink`](#impl-Sink<Packet>) traits.

View file

@ -12,7 +12,7 @@ pub mod xmpp_stream;
pub mod stream_features;
pub use crate::event::Event;
mod client;
pub use client::{Client, oneshot_client::Client as OneshotClient};
pub use client::{Client, simple_client::Client as SimpleClient};
mod component;
pub use crate::component::Component;
mod error;