fn mode(self: File) ModeError!Mode

TODO: integrate with async I/O

Parameters

self: File,