pub enum LmConfigError {
EmptyToolName,
ToolParametersNotObject {
name: Arc<str>,
},
DuplicateToolName {
name: Arc<str>,
},
}Expand description
Why configuring an LmStage or a ToolDefinition failed —
a static, provider-neutral error surfaced at construction, not per generation.
Variants§
EmptyToolName
A tool definition had an empty name.
ToolParametersNotObject
A tool’s parameters was not a JSON object.
DuplicateToolName
Two tools in the effective set shared a name.
Trait Implementations§
Source§impl Clone for LmConfigError
impl Clone for LmConfigError
Source§fn clone(&self) -> LmConfigError
fn clone(&self) -> LmConfigError
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 LmConfigError
impl Debug for LmConfigError
Source§impl Display for LmConfigError
impl Display for LmConfigError
impl Eq for LmConfigError
Source§impl Error for LmConfigError
impl Error for LmConfigError
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 LmConfigError
impl PartialEq for LmConfigError
impl StructuralPartialEq for LmConfigError
Auto Trait Implementations§
impl Freeze for LmConfigError
impl RefUnwindSafe for LmConfigError
impl Send for LmConfigError
impl Sync for LmConfigError
impl Unpin for LmConfigError
impl UnsafeUnpin for LmConfigError
impl UnwindSafe for LmConfigError
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