pub enum InteractiveError {
Show 19 variants
RunClosed {
run_id: InteractiveRunId,
},
ProducerStopped {
run_id: InteractiveRunId,
message: &'static str,
},
ProducerTaskFailed {
run_id: InteractiveRunId,
},
CommandChannelClosed {
run_id: InteractiveRunId,
},
ToolInvocationsPending {
run_id: InteractiveRunId,
},
NoPendingToolInvocations {
run_id: InteractiveRunId,
},
ToolInvocationsRequireMessageProtocol {
run_id: InteractiveRunId,
count: usize,
},
InvalidToolInvocationBatch {
run_id: InteractiveRunId,
},
InvalidInput {
reason: &'static str,
},
UnknownInput,
AlreadyAccepted,
AlreadyRemoved,
InvalidPendingOrder {
reason: &'static str,
},
StalePendingOrder {
reason: &'static str,
},
Runtime {
source: RuntimeError,
},
Plan {
source: PlanError,
},
PlanControlRequiresIdle,
SessionSaveRequiresIdle,
CompactRequiresIdle,
}Variants§
RunClosed
The interactive producer ended without emitting the terminal closed event.
Fields
§
run_id: InteractiveRunIdProducerStopped
The producer stopped before the stream’s normal terminal event.
ProducerTaskFailed
The producer task could not be joined successfully.
Fields
§
run_id: InteractiveRunIdCommandChannelClosed
Fields
§
run_id: InteractiveRunIdToolInvocationsPending
Fields
§
run_id: InteractiveRunIdNoPendingToolInvocations
Fields
§
run_id: InteractiveRunIdToolInvocationsRequireMessageProtocol
InvalidToolInvocationBatch
Fields
§
run_id: InteractiveRunIdInvalidInput
UnknownInput
AlreadyAccepted
AlreadyRemoved
InvalidPendingOrder
StalePendingOrder
Runtime
Fields
§
source: RuntimeErrorPlan
PlanControlRequiresIdle
SessionSaveRequiresIdle
CompactRequiresIdle
Trait Implementations§
Source§impl Debug for InteractiveError
impl Debug for InteractiveError
Source§impl Display for InteractiveError
impl Display for InteractiveError
Source§impl Error for InteractiveError
impl Error for InteractiveError
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<PlanError> for InteractiveError
impl From<PlanError> for InteractiveError
Source§impl From<RuntimeError> for InteractiveError
impl From<RuntimeError> for InteractiveError
Source§fn from(source: RuntimeError) -> Self
fn from(source: RuntimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for InteractiveError
impl !UnwindSafe for InteractiveError
impl Forget for InteractiveError
impl Freeze for InteractiveError
impl Move for InteractiveError
impl Send for InteractiveError
impl Sync for InteractiveError
impl Unpin for InteractiveError
impl UnsafeUnpin for InteractiveError
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