rust/hedgewars-server/src/server/io.rs
changeset 14478 98ef2913ec73
parent 14436 06672690d71b
child 14800 f43ab2bd76ae
equal deleted inserted replaced
14477:a077aac9df01 14478:98ef2913ec73
     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>;