1 2 3 4 5 6 7 8 9 10 11 12 13
use std::fs::File; use std::io::Read; /// A local read operation. pub(crate) struct LocalReadOp { pub(in crate::system::local) file: File, } impl Read for LocalReadOp { fn read(&mut self, buffer: &mut [u8]) -> std::io::Result<usize> { self.file.read(buffer) } }