diff options
| author | Damian Gryski <damian@gryski.com> | 2012-07-26 23:47:51 +0200 |
|---|---|---|
| committer | Tim Chevalier <chevalier@alum.wellesley.edu> | 2012-07-26 17:05:13 -0700 |
| commit | cdd052f6ea1fb268a25e467147643344ec9a6b8c (patch) | |
| tree | 91a019db82a7b18a98e72a6a04e87aa040e6004f /src/libstd | |
| parent | 872ef0f3124eaca8e0c67095c4117c93922b670d (diff) | |
| download | rust-cdd052f6ea1fb268a25e467147643344ec9a6b8c.tar.gz rust-cdd052f6ea1fb268a25e467147643344ec9a6b8c.zip | |
core::io::writer : add get_type() method
The get_type() method can hint to users what kind of item might be under the hood.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/net_tcp.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstd/net_tcp.rs b/src/libstd/net_tcp.rs index 4826bc760c2..438faa0c4fa 100644 --- a/src/libstd/net_tcp.rs +++ b/src/libstd/net_tcp.rs @@ -840,6 +840,9 @@ impl tcp_socket_buf of io::writer for @tcp_socket_buf { fn flush() -> int { 0 } + fn get_type() -> io::writer_type { + io::file + } } // INTERNAL API |
