equal
deleted
inserted
replaced
1 use std::{ |
1 use std::{ |
2 fs::{File, OpenOptions}, |
2 fs::{File, OpenOptions}, |
3 io::{Read, Write, Result, Error, ErrorKind} |
3 io::{Error, ErrorKind, Read, Result, Write}, |
4 }; |
4 }; |
5 |
5 |
6 pub trait HWServerIO { |
6 pub trait HWServerIO { |
7 fn write_file(&mut self, name: &str, content: &str) -> Result<()>; |
7 fn write_file(&mut self, name: &str, content: &str) -> Result<()>; |
8 fn read_file(&mut self, name: &str) -> Result<String>; |
8 fn read_file(&mut self, name: &str) -> Result<String>; |