#[non_exhaustive]pub enum HostReply {
Result(ToolResult),
Failed(String),
Hook(Value),
}Expand description
What the host said.
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.
Result(ToolResult)
It ran the call; the result may itself say it failed (is_error).
Failed(String)
It could not run the call.
Hook(Value)
Its answer to a hook call: a hook response object.
Trait Implementations§
Auto Trait Implementations§
impl Forget for HostReply
impl Freeze for HostReplywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ToolResultBlock>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<FileChange>: Freeze,
impl Move for HostReply
impl RefUnwindSafe for HostReply
impl Send for HostReply
impl Sync for HostReply
impl Unpin for HostReply
impl UnsafeUnpin for HostReplywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ToolResultBlock>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<FileChange>: UnsafeUnpin,
impl UnwindSafe for HostReply
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