@@ -298,7 +298,7 @@ impl<'conn> Iterator<Notification> for Notifications<'conn> {
298298}
299299
300300/// Contains information necessary to cancel queries for a session
301- pub struct PostgresCancelData {
301+ pub struct CancelData {
302302 /// The process ID of the session
303303 pub process_id : u32 ,
304304 /// The secret key for the session
@@ -311,7 +311,7 @@ pub struct PostgresCancelData {
311311/// was successful or not. An error will only be returned if the driver was
312312/// unable to connect to the database.
313313///
314- /// A `PostgresCancelData ` object can be created via
314+ /// A `CancelData ` object can be created via
315315/// `PostgresConnection::cancel_data`. The object can cancel any query made on
316316/// that connection.
317317///
@@ -331,7 +331,7 @@ pub struct PostgresCancelData {
331331/// # let _ =
332332/// postgres::cancel_query(url, &NoSsl, cancel_data);
333333/// ```
334- pub fn cancel_query < T > ( params : T , ssl : & SslMode , data : PostgresCancelData )
334+ pub fn cancel_query < T > ( params : T , ssl : & SslMode , data : CancelData )
335335 -> result:: Result < ( ) , PostgresConnectError > where T : IntoConnectParams {
336336 let params = try!( params. into_connect_params ( ) ) ;
337337 let mut socket = try!( io:: initialize_stream ( & params, ssl) ) ;
@@ -351,7 +351,7 @@ struct InnerPostgresConnection {
351351 next_stmt_id : uint ,
352352 notice_handler : Box < NoticeHandler +Send > ,
353353 notifications : RingBuf < Notification > ,
354- cancel_data : PostgresCancelData ,
354+ cancel_data : CancelData ,
355355 unknown_types : HashMap < Oid , String > ,
356356 desynchronized : bool ,
357357 finished : bool ,
@@ -388,7 +388,7 @@ impl InnerPostgresConnection {
388388 next_stmt_id : 0 ,
389389 notice_handler : box DefaultNoticeHandler ,
390390 notifications : RingBuf :: new ( ) ,
391- cancel_data : PostgresCancelData { process_id : 0 , secret_key : 0 } ,
391+ cancel_data : CancelData { process_id : 0 , secret_key : 0 } ,
392392 unknown_types : HashMap :: new ( ) ,
393393 desynchronized : false ,
394394 finished : false ,
@@ -938,7 +938,7 @@ impl PostgresConnection {
938938 ///
939939 /// Used with the `cancel_query` function. The object returned can be used
940940 /// to cancel any query executed by the connection it was created from.
941- pub fn cancel_data ( & self ) -> PostgresCancelData {
941+ pub fn cancel_data ( & self ) -> CancelData {
942942 self . conn . borrow ( ) . cancel_data
943943 }
944944
0 commit comments