@@ -12,45 +12,45 @@ use std::{
12
12
/// [`interleave_pending`]: super::AsyncReadTestExt::interleave_pending
13
13
/// [`interleave_pending_write`]: super::AsyncWriteTestExt::interleave_pending_write
14
14
#[ derive( Debug ) ]
15
- pub struct InterleavePending < IO > {
16
- io : IO ,
15
+ pub struct InterleavePending < Io > {
16
+ io : Io ,
17
17
pended : bool ,
18
18
}
19
19
20
- impl < IO : Unpin > Unpin for InterleavePending < IO > { }
20
+ impl < Io : Unpin > Unpin for InterleavePending < Io > { }
21
21
22
- impl < IO > InterleavePending < IO > {
23
- unsafe_pinned ! ( io: IO ) ;
22
+ impl < Io > InterleavePending < Io > {
23
+ unsafe_pinned ! ( io: Io ) ;
24
24
unsafe_unpinned ! ( pended: bool ) ;
25
25
26
- pub ( crate ) fn new ( io : IO ) -> Self {
26
+ pub ( crate ) fn new ( io : Io ) -> Self {
27
27
Self { io, pended : false }
28
28
}
29
29
30
30
/// Acquires a reference to the underlying I/O object that this adaptor is
31
31
/// wrapping.
32
- pub fn get_ref ( & self ) -> & IO {
32
+ pub fn get_ref ( & self ) -> & Io {
33
33
& self . io
34
34
}
35
35
36
36
/// Acquires a mutable reference to the underlying I/O object that this
37
37
/// adaptor is wrapping.
38
- pub fn get_mut ( & mut self ) -> & mut IO {
38
+ pub fn get_mut ( & mut self ) -> & mut Io {
39
39
& mut self . io
40
40
}
41
41
42
42
/// Acquires a pinned mutable reference to the underlying I/O object that
43
43
/// this adaptor is wrapping.
44
- pub fn get_pin_mut < ' a > ( self : Pin < & ' a mut Self > ) -> Pin < & ' a mut IO > {
44
+ pub fn get_pin_mut < ' a > ( self : Pin < & ' a mut Self > ) -> Pin < & ' a mut Io > {
45
45
self . project ( ) . 0
46
46
}
47
47
48
48
/// Consumes this adaptor returning the underlying I/O object.
49
- pub fn into_inner ( self ) -> IO {
49
+ pub fn into_inner ( self ) -> Io {
50
50
self . io
51
51
}
52
52
53
- fn project < ' a > ( self : Pin < & ' a mut Self > ) -> ( Pin < & ' a mut IO > , & ' a mut bool ) {
53
+ fn project < ' a > ( self : Pin < & ' a mut Self > ) -> ( Pin < & ' a mut Io > , & ' a mut bool ) {
54
54
unsafe {
55
55
let this = self . get_unchecked_mut ( ) ;
56
56
( Pin :: new_unchecked ( & mut this. io ) , & mut this. pended )
0 commit comments