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:
committed by
Tim Chevalier
parent
872ef0f312
commit
cdd052f6ea
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user