std/sys/io/kernel_copy/
mod.rs1pub enum CopyState {
2 #[cfg_attr(not(any(target_os = "linux", target_os = "android")), expect(dead_code))]
3 Ended(u64),
4 Fallback(u64),
5}
6
7cfg_select! {
8 any(target_os = "linux", target_os = "android") => {
9 mod linux;
10 pub use linux::kernel_copy;
11 }
12 _ => {
13 use crate::io::{Result, Read, Write};
14
15 pub fn kernel_copy<R: ?Sized, W: ?Sized>(_reader: &mut R, _writer: &mut W) -> Result<CopyState>
16 where
17 R: Read,
18 W: Write,
19 {
20 Ok(CopyState::Fallback(0))
21 }
22 }
23}