pub struct Connect { /* private fields */ }
Implementations§
source§impl Connect
impl Connect
sourcepub fn new<Addr>(addr: Addr) -> Connectwhere
Addr: Into<SocketAddress>,
pub fn new<Addr>(addr: Addr) -> Connectwhere
Addr: Into<SocketAddress>,
Creates a connection attempt with the specified remote address
sourcepub fn with_server_name<Name>(self, server_name: Name) -> Connectwhere
Name: Into<ServerName>,
pub fn with_server_name<Name>(self, server_name: Name) -> Connectwhere
Name: Into<ServerName>,
Specifies the server name to use for the connection
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Connect
impl RefUnwindSafe for Connect
impl Send for Connect
impl Sync for Connect
impl Unpin for Connect
impl UnwindSafe for Connect
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