core::io::writer : add get_type() method

The get_type() method can hint to users what kind of item might be
   under the hood.
This commit is contained in:
Damian Gryski
2012-07-26 23:47:51 +02:00
committed by Tim Chevalier
parent 872ef0f312
commit cdd052f6ea
2 changed files with 19 additions and 0 deletions

View File

@@ -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