Add. `write` and `try_write` methods to stream handle.