@@ -4,7 +4,7 @@ use futures::{try_ready, Async, Future, Poll, Stream};
44use state_machine_future:: { transition, RentToOwn , StateMachineFuture } ;
55use std:: io;
66
7- use crate :: proto:: { Client , ConnectSocketFuture , Connection , HandshakeFuture , SimpleQueryStream } ;
7+ use crate :: proto:: { Client , ConnectRawFuture , ConnectSocketFuture , Connection , SimpleQueryStream } ;
88use crate :: { Config , Error , Socket , TargetSessionAttrs , TlsMode } ;
99
1010#[ derive( StateMachineFuture ) ]
@@ -18,16 +18,16 @@ where
1818 tls_mode : T ,
1919 config : Config ,
2020 } ,
21- #[ state_machine_future( transitions( Handshaking ) ) ]
21+ #[ state_machine_future( transitions( ConnectingRaw ) ) ]
2222 ConnectingSocket {
2323 future : ConnectSocketFuture ,
2424 idx : usize ,
2525 tls_mode : T ,
2626 config : Config ,
2727 } ,
2828 #[ state_machine_future( transitions( CheckingSessionAttrs , Finished ) ) ]
29- Handshaking {
30- future : HandshakeFuture < Socket , T > ,
29+ ConnectingRaw {
30+ future : ConnectRawFuture < Socket , T > ,
3131 target_session_attrs : TargetSessionAttrs ,
3232 } ,
3333 #[ state_machine_future( transitions( Finished ) ) ]
@@ -63,15 +63,15 @@ where
6363 let socket = try_ready ! ( state. future. poll( ) ) ;
6464 let state = state. take ( ) ;
6565
66- transition ! ( Handshaking {
66+ transition ! ( ConnectingRaw {
6767 target_session_attrs: state. config. 0 . target_session_attrs,
68- future: HandshakeFuture :: new( socket, state. tls_mode, state. config, Some ( state. idx) ) ,
68+ future: ConnectRawFuture :: new( socket, state. tls_mode, state. config, Some ( state. idx) ) ,
6969 } )
7070 }
7171
72- fn poll_handshaking < ' a > (
73- state : & ' a mut RentToOwn < ' a , Handshaking < T > > ,
74- ) -> Poll < AfterHandshaking < T > , Error > {
72+ fn poll_connecting_raw < ' a > (
73+ state : & ' a mut RentToOwn < ' a , ConnectingRaw < T > > ,
74+ ) -> Poll < AfterConnectingRaw < T > , Error > {
7575 let ( client, connection) = try_ready ! ( state. future. poll( ) ) ;
7676
7777 if let TargetSessionAttrs :: ReadWrite = state. target_session_attrs {
0 commit comments