#[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 HostReply
impl Move for HostReply
impl RefUnwindSafe for HostReply
impl Send for HostReply
impl Sync for HostReply
impl Unpin for HostReply
impl UnsafeUnpin for HostReply
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