diff options
Diffstat (limited to 'tokio/tests/support')
-rw-r--r-- | tokio/tests/support/mock_file.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tokio/tests/support/mock_file.rs b/tokio/tests/support/mock_file.rs index 7f3beee8..44aa7b3f 100644 --- a/tokio/tests/support/mock_file.rs +++ b/tokio/tests/support/mock_file.rs @@ -263,3 +263,17 @@ impl fmt::Debug for File { fmt.debug_struct("mock::File").finish() } } + +#[cfg(unix)] +impl std::os::unix::io::AsRawFd for File { + fn as_raw_fd(&self) -> std::os::unix::io::RawFd { + unimplemented!(); + } +} + +#[cfg(windows)] +impl std::os::windows::io::AsRawHandle for File { + fn as_raw_handle(&self) -> std::os::windows::io::RawHandle { + unimplemented!(); + } +} |