fast_vk 0.3.4

Low-level VK API library designed for millions requests per second
Documentation
use crate::vk_error::VkError;
use std::sync::Arc;

pub type Result<T> = std::result::Result<T, Error>;

#[derive(thiserror::Error, Debug)]
pub enum Error {
    #[error("VK Error({0})")]
    VK(VkError),
    #[error("Arc({0})")]
    Arc(Arc<Error>),
    #[error("Custom({0})")]
    Custom(anyhow::Error),
}

impl From<anyhow::Error> for Error {
    fn from(error: anyhow::Error) -> Self {
        Error::Custom(error)
    }
}