llama_cpp_bindings/mtmd/
mtmd_init_error.rs1use std::path::PathBuf;
2
3#[derive(thiserror::Error, Debug)]
4pub enum MtmdInitError {
5 #[error("Failed to create CString from mmproj path: {0}")]
6 CStringError(#[from] std::ffi::NulError),
7 #[error("Mmproj path is not valid UTF-8: {0:?}")]
8 PathToStrError(PathBuf),
9 #[error("mmproj could not be loaded: {path:?}")]
10 Unloadable { path: PathBuf },
11 #[error("not enough memory")]
12 NotEnoughMemory,
13 #[error("{message}")]
14 Reported { message: String },
15}