pub enum MplError {
Show 13 variants
QomBreach {
message: String,
metrics: HashMap<String, f64>,
thresholds: HashMap<String, f64>,
hints: Vec<String>,
},
SchemaFidelity {
message: String,
stype: String,
errors: Vec<SchemaError>,
hints: Vec<String>,
},
ToolArgCoercion {
message: String,
tool_id: String,
expected_stype: String,
hints: Vec<String>,
},
PolicyDenied {
message: String,
policy_ref: String,
hints: Vec<String>,
},
UnknownStype {
stype: String,
suggestions: Vec<String>,
},
UnknownTool {
tool_id: String,
available: Vec<String>,
},
NegotiationIncompatible {
message: String,
client_capabilities: Vec<String>,
server_capabilities: Vec<String>,
},
InvalidSType {
stype: String,
reason: String,
},
SemanticHashMismatch {
expected: String,
actual: String,
},
Validation(String),
Serialization(Error),
Io(Error),
Internal(String),
}Expand description
MPL Error type
Variants§
QomBreach
Fields
SchemaFidelity
ToolArgCoercion
PolicyDenied
UnknownStype
UnknownTool
NegotiationIncompatible
InvalidSType
SemanticHashMismatch
Validation(String)
Serialization(Error)
Io(Error)
Internal(String)
Implementations§
Trait Implementations§
Source§impl Error for MplError
impl Error for MplError
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 From<&MplError> for MplErrorResponse
impl From<&MplError> for MplErrorResponse
Auto Trait Implementations§
impl Freeze for MplError
impl !RefUnwindSafe for MplError
impl Send for MplError
impl Sync for MplError
impl Unpin for MplError
impl !UnwindSafe for MplError
Blanket Implementations§
Source§impl<T> AnyExt for T
impl<T> AnyExt for T
Source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
Attempts to downcast this to
T behind referenceSource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
Attempts to downcast this to
T behind mutable referenceSource§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
Attempts to downcast this to
T behind Rc pointerSource§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
Attempts to downcast this to
T behind Arc pointerSource§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
Source§impl<T, X> CoerceTo<T> for Xwhere
T: CoerceFrom<X> + ?Sized,
impl<T, X> CoerceTo<T> for Xwhere
T: CoerceFrom<X> + ?Sized,
fn coerce_rc_to(self: Rc<X>) -> Rc<T>
fn coerce_box_to(self: Box<X>) -> Box<T>
fn coerce_ref_to(&self) -> &T
fn coerce_mut_to(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.