#[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 MappedErrorwhere
String: RefUnwindSafe,
impl Send for MappedError
impl Sync for MappedError
impl Unpin for MappedError
impl UnsafeUnpin for MappedErrorwhere
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for MappedErrorwhere
&'static str: UnwindSafe,
String: UnwindSafe,
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
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