Lines Matching defs:connect
8 //! To connect as a client to a remote server:
17 //! let stream = TcpStream::connect("google.com:443").unwrap();
18 //! let mut stream = connector.connect("google.com", stream).unwrap();
322 /// This should only be enabled if a client has failed to connect to a server which
2276 pub fn connect<S>(self, stream: S) -> Result<SslStream<S>, HandshakeError<S>>
2280 SslStreamBuilder::new(self, stream).connect()
3489 /// call to read or write. Otherwise the `connect` and `accept` methods can be used to
3581 pub fn connect(&mut self) -> Result<(), Error> {
3901 /// See `Ssl::connect`
3902 pub fn connect(mut self) -> Result<SslStream<S>, HandshakeError<S>> {
3903 match self.inner.connect() {