fn save_image(&self, file_path: &str, bytes: &[u8]) {
        write(file_path, bytes)
            .with_context(|e| {
                error!("Failed to save image!");
                trace!("A downloaded image was unable to be saved...");
                format!("{}", e)
            })
            .unwrap();
    }
/// Saves image to download directory.
Saves image to download directory.
Saves image to download directory .
fn save_image(&self, file_path: &str, bytes: &[u8]) {
        write(file_path, bytes)
            .with_context(|e| {
                error!("Failed to save image!");
                trace!("A downloaded image was unable to be saved...");
                format!("{}", e)
            })
            .unwrap();
    }
fn save_image ( & self , file_path : & str , bytes : & [ u8 ] ) { write ( file_path , bytes ) . with_context ( | e | { error ! ( " " ) ; trace ! ( " " ) ; format ! ( " " e ) } ) . unwrap ( ) ; }
Saves image to download directory.
Saves image to download directory .
&self
file_path
&str
bytes
&[u8]
&self
file_path
&str
bytes
&[u8]