iced_sessionlock/
error.rsuse iced_futures::futures;
#[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(Box<dyn std::error::Error + Send + Sync>),
#[error("the application graphics context could not be created")]
GraphicsCreationFailed(iced_graphics::Error),
}
impl From<iced_graphics::Error> for Error {
fn from(error: iced_graphics::Error) -> Error {
Error::GraphicsCreationFailed(error)
}
}