pub enum LlmConfigError {
Unusable {
provider: &'static str,
selected_by: &'static str,
detail: String,
},
Unsupported {
name: String,
},
}Expand description
A provider is named but cannot be built.
Raised before any request is made, so a host can refuse to start instead of
failing on the first message. Errors from calling a provider are
LlmError.
Variants§
Unusable
A provider is named and its settings cannot be read: a missing key, a
malformed OPENROUTER_REASONING.
Fields
Unsupported
LlmSettings::provider names something no adapter implements —
usually a typo.
Trait Implementations§
Source§impl Clone for LlmConfigError
impl Clone for LlmConfigError
Source§fn clone(&self) -> LlmConfigError
fn clone(&self) -> LlmConfigError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LlmConfigError
impl Debug for LlmConfigError
Source§impl Display for LlmConfigError
impl Display for LlmConfigError
impl Eq for LlmConfigError
Source§impl Error for LlmConfigError
impl Error for LlmConfigError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for LlmConfigError
impl PartialEq for LlmConfigError
impl StructuralPartialEq for LlmConfigError
Auto Trait Implementations§
impl Freeze for LlmConfigError
impl RefUnwindSafe for LlmConfigError
impl Send for LlmConfigError
impl Sync for LlmConfigError
impl Unpin for LlmConfigError
impl UnsafeUnpin for LlmConfigError
impl UnwindSafe for LlmConfigError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more