maplibre 0.0.2

Native Maps for Web, Mobile and Desktop
Documentation
//! Errors which can happen in various parts of the library.

use lyon::tessellation::TessellationError;
use std::sync::mpsc::SendError;

#[derive(Debug)]
pub enum Error {
    Schedule,
    Network(String),
    Tesselation(TessellationError),
}

impl From<TessellationError> for Error {
    fn from(e: TessellationError) -> Self {
        Error::Tesselation(e)
    }
}

impl<T> From<SendError<T>> for Error {
    fn from(_e: SendError<T>) -> Self {
        Error::Schedule
    }
}