#[non_exhaustive]pub enum Error {
Show 14 variants
AbiMismatch {
expected: i32,
actual: i32,
},
InvalidArgument {
message: String,
},
ModelLoad {
message: String,
},
Runtime {
message: String,
},
NativeUnknown {
message: String,
},
UnknownStatus {
status: u32,
message: String,
},
InteriorNul {
field: &'static str,
},
PathEncoding,
InvalidUtf8 {
field: &'static str,
},
CallbackPanicked,
LogitsProcessorPanicked,
RequestCallbackThread {
operation: &'static str,
},
InvalidConfiguration {
message: String,
},
Json {
context: &'static str,
message: String,
},
}Expand description
An error returned by the safe vllm.cpp wrapper.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AbiMismatch
The loaded native library does not match the generated C ABI.
InvalidArgument
Native code rejected caller input.
ModelLoad
The model, tokenizer, configuration, or weights could not be loaded.
Runtime
Native generation failed at runtime.
NativeUnknown
Native code reported an unclassified failure.
UnknownStatus
Native code returned a status unknown to these bindings.
InteriorNul
A value cannot cross the C boundary because it contains a NUL byte.
PathEncoding
A platform path cannot be represented by the native UTF-8 API.
InvalidUtf8
Native code returned bytes that are not valid UTF-8.
CallbackPanicked
An asynchronous output callback panicked.
LogitsProcessorPanicked
A custom logits processor panicked.
RequestCallbackThread
A request operation was attempted from that request’s callback thread.
InvalidConfiguration
A Rust-side parameter cannot be represented by the native API.
Json
JSON serialization or parsing failed.
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
1.30.0 · 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()