pub enum MtmdError {
}Expand description
All errors that can be returned by the mtmd module.
Variants§
ContextCreateFailed
The context could not be created (e.g. bad mmproj file).
BitmapCreateFailed
The bitmap could not be created.
InvalidPath(NulError)
A path could not be converted to a valid C string (embedded NUL byte or non-UTF-8).
PathNotUtf8
A path was not representable as UTF-8.
TokenizeError(i32)
mtmd_tokenize returned an error code.
EncodeError(i32)
mtmd_encode_chunk returned a non-zero code.
ChunkSaveFailed(i32)
mtmd_input_chunk_save returned a non-zero code.
ChunkLoadFailed
mtmd_input_chunk_load returned null — the buffer was not a chunk
this build can restore.
BatchAddFailed(i32)
A chunk could not be added to a batch.
BatchCreateFailed
mtmd_batch_init returned null.
EvalError(i32)
mtmd_helper_eval_chunks (or single-chunk variant) returned a non-zero code.
VideoInitFailed
A video stream could not be opened. Common causes: the build lacks
video support (MTMD_VIDEO was OFF), ffmpeg/ffprobe is not on
PATH, or the file is unreadable.
VideoReadError(i32)
mtmd_helper_video_read_next returned an error code (-2).
Trait Implementations§
Source§impl Error for MtmdError
impl Error for MtmdError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()