#[non_exhaustive]pub enum MappedError {
Rpc(ErrorData),
Tool(Cow<'static, str>),
}Expand description
A provider failure the tool layer can return.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Rpc(ErrorData)
A JSON-RPC error. The message has no secrets and no raw server text.
Tool(Cow<'static, str>)
A tool error the model can act on. Not a protocol failure.
Trait Implementations§
Auto Trait Implementations§
impl Forget for MappedError
impl Freeze for MappedError
impl Move for MappedError
impl RefUnwindSafe for MappedError
impl Send for MappedError
impl Sync for MappedError
impl Unpin for MappedError
impl UnsafeUnpin for MappedError
impl UnwindSafe for MappedError
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