llama_cpp_bindings/context/save_session_error.rs
1use std::ffi::NulError;
2use std::path::PathBuf;
3
4#[derive(Debug, Eq, PartialEq, thiserror::Error)]
5pub enum SaveSessionError {
6 #[error("Failed to save session file")]
7 FailedToSave,
8
9 #[error("null byte in string {0}")]
10 NullError(#[from] NulError),
11
12 #[error("failed to convert path {0} to str")]
13 PathToStrError(PathBuf),
14}