implement Network receive

This commit is contained in:
2019-04-24 17:01:43 +02:00
parent 66ffcb7062
commit 4f6f13d2ea
8 changed files with 414 additions and 26 deletions

View File

@ -16,4 +16,4 @@ pub fn generate_preview(
config: &ConvertConfig,
) -> ::image::ImageResult<Vec<u8>> {
unimplemented!()
}
}

View File

@ -11,10 +11,10 @@ use std::path::{Path, PathBuf};
use std::sync::Arc;
pub use self::search::Query;
mod search;
mod image_convert;
mod search;
pub type TextureFileResult = Result< Arc<Vec<u8>> , TextureFileError>;
pub type TextureFileResult = Result<Arc<Vec<u8>>, TextureFileError>;
pub enum TextureFileError {
NotFound,
IoError(io::Error),
@ -72,4 +72,3 @@ impl DataStore {
unimplemented!();
}
}

View File

@ -35,4 +35,4 @@ enum QueryFilter {
InName(String),
MinResolution(usize),
BeforeDate { year: u16, month: u16, day: u16 },
}
}