Skip to main content

llama_cpp_bindings/context/
save_seq_state_error.rs

1use std::ffi::NulError;
2use std::path::PathBuf;
3
4#[derive(Debug, Eq, PartialEq, thiserror::Error)]
5pub enum SaveSeqStateError {
6    #[error("Failed to save sequence state 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}