File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ impl FileStream {
42
42
pub fn open < P : PathLike > ( _path : & P ,
43
43
_mode : FileMode ,
44
44
_access : FileAccess
45
- ) -> Result < FileStream , IoError > {
45
+ ) -> Option < FileStream > {
46
46
fail ! ( )
47
47
}
48
48
}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ use super::ip::IpAddr;
16
16
pub struct TcpStream ;
17
17
18
18
impl TcpStream {
19
- pub fn connect ( _addr : IpAddr ) -> Result < TcpStream , IoError > {
19
+ pub fn connect ( _addr : IpAddr ) -> Option < TcpStream > {
20
20
fail ! ( )
21
21
}
22
22
}
@@ -40,7 +40,7 @@ impl Close for TcpStream {
40
40
pub struct TcpListener ;
41
41
42
42
impl TcpListener {
43
- pub fn bind ( _addr : IpAddr ) -> Result < TcpListener , IoError > {
43
+ pub fn bind ( _addr : IpAddr ) -> Option < TcpListener > {
44
44
fail ! ( )
45
45
}
46
46
}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ use super::ip::IpAddr;
16
16
pub struct UdpStream ;
17
17
18
18
impl UdpStream {
19
- pub fn connect ( _addr : IpAddr ) -> Result < UdpStream , IoError > {
19
+ pub fn connect ( _addr : IpAddr ) -> Option < UdpStream > {
20
20
fail ! ( )
21
21
}
22
22
}
@@ -40,7 +40,7 @@ impl Close for UdpStream {
40
40
pub struct UdpListener ;
41
41
42
42
impl UdpListener {
43
- pub fn bind ( _addr : IpAddr ) -> Result < UdpListener , IoError > {
43
+ pub fn bind ( _addr : IpAddr ) -> Option < UdpListener > {
44
44
fail ! ( )
45
45
}
46
46
}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ use super::super::support::PathLike;
16
16
pub struct UnixStream ;
17
17
18
18
impl UnixStream {
19
- pub fn connect < P : PathLike > ( _path : & P ) -> Result < UnixStream , IoError > {
19
+ pub fn connect < P : PathLike > ( _path : & P ) -> Option < UnixStream > {
20
20
fail ! ( )
21
21
}
22
22
}
@@ -40,7 +40,7 @@ impl Close for UnixStream {
40
40
pub struct UnixListener ;
41
41
42
42
impl UnixListener {
43
- pub fn bind < P : PathLike > ( _path : & P ) -> Result < UnixListener , IoError > {
43
+ pub fn bind < P : PathLike > ( _path : & P ) -> Option < UnixListener > {
44
44
fail ! ( )
45
45
}
46
46
}
You can’t perform that action at this time.
0 commit comments