Moved starttls connector to tokio_xmpp::connect::starttls module
This commit is contained in:
parent
9151461b10
commit
ec3c7694a7
7 changed files with 59 additions and 65 deletions
|
|
@ -52,12 +52,16 @@ pub struct ClientBuilder<'a, C: ServerConnector> {
|
|||
}
|
||||
|
||||
#[cfg(any(feature = "starttls-rust", feature = "starttls-native"))]
|
||||
impl ClientBuilder<'_, tokio_xmpp::starttls::ServerConfig> {
|
||||
impl ClientBuilder<'_, tokio_xmpp::connect::starttls::ServerConfig> {
|
||||
pub fn new<'a>(
|
||||
jid: BareJid,
|
||||
password: &'a str,
|
||||
) -> ClientBuilder<'a, tokio_xmpp::starttls::ServerConfig> {
|
||||
Self::new_with_connector(jid, password, tokio_xmpp::starttls::ServerConfig::UseSrv)
|
||||
) -> ClientBuilder<'a, tokio_xmpp::connect::starttls::ServerConfig> {
|
||||
Self::new_with_connector(
|
||||
jid,
|
||||
password,
|
||||
tokio_xmpp::connect::starttls::ServerConfig::UseSrv,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue