mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
tokio-xmpp: rename OneshotClient to SimpleClient
This commit is contained in:
parent
3e2b51f148
commit
eb13634571
4 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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.
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue