Skip to content

armgit / uzu

Public Imported from GitHub
0

A high-performance inference engine for AI models

513 B
Raw Blame
use crate::{backends::BackendError, file_download::FileDownloadError, locks::LockError};

#[derive(Debug, thiserror::Error)]
pub enum DownloadError {
    #[error(transparent)]
    Lock(#[from] LockError),
    #[error(transparent)]
    Backend(#[from] BackendError),
    #[error(transparent)]
    FileDownload(#[from] FileDownloadError),
    #[error("conflicting download config for destination: {0}")]
    ConflictingConfig(String),
    #[error("bearer token requires https: {0}")]
    InsecureRequest(String),
}