Lines Matching refs:io
19 io::{self, Write},
72 pub fn create_from_raw_data(data: &[u8; 512]) -> Result<Self, std::io::Error> {
76 return Err(std::io::Error::new(
77 std::io::ErrorKind::Other,
137 pub fn write_to_file(&self, path: &Path) -> Result<(), std::io::Error> {
139 return Err(io::Error::new(
140 io::ErrorKind::Other,
160 return Err(io::Error::new(
161 io::ErrorKind::Other,
171 pub fn read_data_to_file(&mut self, _file: &mut fs::File) -> Result<(), std::io::Error> {
178 io::copy(&mut in_file, _file)?;
191 return Err(io::Error::new(
192 io::ErrorKind::Other,