Changed name to XmppCodec
This commit is contained in:
parent
56dc1c6e60
commit
eb0bc1b82f
5 changed files with 22 additions and 22 deletions
|
|
@ -3,14 +3,14 @@ use tokio::io::{AsyncRead, AsyncWrite};
|
|||
use tokio_util::codec::Framed;
|
||||
use xmpp_parsers::{ns, Element, Jid};
|
||||
|
||||
use crate::xmpp_codec::{Packet, XMPPCodec};
|
||||
use crate::xmpp_codec::{Packet, XmppCodec};
|
||||
use crate::xmpp_stream::XMPPStream;
|
||||
use crate::{Error, ProtocolError};
|
||||
|
||||
/// Sends a `<stream:stream>`, then wait for one from the server, and
|
||||
/// construct an XMPPStream.
|
||||
pub async fn start<S: AsyncRead + AsyncWrite + Unpin>(
|
||||
mut stream: Framed<S, XMPPCodec>,
|
||||
mut stream: Framed<S, XmppCodec>,
|
||||
jid: Jid,
|
||||
ns: String,
|
||||
) -> Result<XMPPStream<S>, Error> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue