@@ -81,38 +81,38 @@ use openssl::ssl::{SslStream, SslContext};
8181use std:: cell:: { Cell , RefCell } ;
8282use std:: hashmap:: HashMap ;
8383use std:: io:: { BufferedStream , IoResult } ;
84+ use std:: io:: net;
8485use std:: io:: net:: ip:: { Port , SocketAddr } ;
8586use std:: io:: net:: tcp:: TcpStream ;
86- use std:: io :: net ;
87+ use std:: mem ;
8788use std:: str;
8889use std:: task;
89- use std:: mem;
9090
91- use error:: { PostgresDbError ,
91+ use error:: { DnsError ,
92+ InvalidUrl ,
93+ MissingPassword ,
94+ MissingUser ,
95+ NoSslSupport ,
9296 PgConnectDbError ,
9397 PgConnectStreamError ,
98+ PgDbError ,
99+ PgStreamDesynchronized ,
100+ PgStreamError ,
94101 PostgresConnectError ,
95- InvalidUrl ,
96- DnsError ,
102+ PostgresDbError ,
103+ PostgresError ,
97104 SocketError ,
98- NoSslSupport ,
99105 SslError ,
100- MissingUser ,
101- UnsupportedAuthentication ,
102- MissingPassword ,
103- PostgresError ,
104- PgStreamError ,
105- PgDbError ,
106- PgStreamDesynchronized } ;
107- use message:: { BackendMessage ,
108- AuthenticationOk ,
106+ UnsupportedAuthentication } ;
107+ use message:: { AuthenticationCleartextPassword ,
108+ AuthenticationGSS ,
109109 AuthenticationKerberosV5 ,
110- AuthenticationCleartextPassword ,
111110 AuthenticationMD5Password ,
111+ AuthenticationOk ,
112112 AuthenticationSCMCredential ,
113- AuthenticationGSS ,
114113 AuthenticationSSPI ,
115114 BackendKeyData ,
115+ BackendMessage ,
116116 BindComplete ,
117117 CommandComplete ,
118118 DataRow ,
@@ -127,17 +127,17 @@ use message::{BackendMessage,
127127 PortalSuspended ,
128128 ReadyForQuery ,
129129 RowDescription } ;
130- use message:: { FrontendMessage ,
131- Bind ,
130+ use message:: { Bind ,
132131 CancelRequest ,
133132 Close ,
134133 Describe ,
135134 Execute ,
135+ FrontendMessage ,
136136 Parse ,
137137 PasswordMessage ,
138138 Query ,
139- StartupMessage ,
140139 SslRequest ,
140+ StartupMessage ,
141141 Sync ,
142142 Terminate } ;
143143use message:: { RowDescriptionEntry , WriteMessage , ReadMessage } ;
0 commit comments