pub struct DirectTlsServerConnector(pub DnsConfig);
Available on crate feature
starttls
only.Expand description
Connect via direct TLS to an XMPP server
Tuple Fields§
§0: DnsConfig
Trait Implementations§
Source§impl Clone for DirectTlsServerConnector
impl Clone for DirectTlsServerConnector
Source§fn clone(&self) -> DirectTlsServerConnector
fn clone(&self) -> DirectTlsServerConnector
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DirectTlsServerConnector
impl Debug for DirectTlsServerConnector
Source§impl From<DnsConfig> for DirectTlsServerConnector
impl From<DnsConfig> for DirectTlsServerConnector
Source§fn from(dns_config: DnsConfig) -> DirectTlsServerConnector
fn from(dns_config: DnsConfig) -> DirectTlsServerConnector
Converts to this type from the input type.
Source§impl ServerConnector for DirectTlsServerConnector
impl ServerConnector for DirectTlsServerConnector
Source§type Stream = BufStream<TlsStream<TcpStream>>
type Stream = BufStream<TlsStream<TcpStream>>
The type of Stream this ServerConnector produces
Source§async fn connect(
&self,
jid: &Jid,
ns: &'static str,
timeouts: Timeouts,
) -> Result<(PendingFeaturesRecv<Self::Stream>, ChannelBinding), Error>
async fn connect( &self, jid: &Jid, ns: &'static str, timeouts: Timeouts, ) -> Result<(PendingFeaturesRecv<Self::Stream>, ChannelBinding), Error>
This must return the connection ready to login, ie if starttls is involved, after TLS has been started, and then after the <stream headers are exchanged
Auto Trait Implementations§
impl Freeze for DirectTlsServerConnector
impl RefUnwindSafe for DirectTlsServerConnector
impl Send for DirectTlsServerConnector
impl Sync for DirectTlsServerConnector
impl Unpin for DirectTlsServerConnector
impl UnwindSafe for DirectTlsServerConnector
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more