use crate::futures::futures;
use crate::graphics;
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("the futures executor could not be created")]
ExecutorCreationFailed(futures::io::Error),
#[error("the application window could not be created")]
WindowCreationFailed(winit::error::RequestError),
#[error("the application graphics context could not be created")]
GraphicsCreationFailed(graphics::Error),
}
impl From<graphics::Error> for Error {
fn from(error: iced_graphics::Error) -> Error {
Error::GraphicsCreationFailed(error)
}
}