pub enum ChannelState {
Running,
Paused,
AwaitingApproval {
request_id: String,
},
Completed,
Aborted {
reason: String,
},
}Expand description
State of a channel.
Channels start in Running state and can
transition through various states. Terminal states are
Completed and Aborted.
§State Transitions
| From | To | Method |
|---|---|---|
| Running | Completed | ChannelMut::complete() |
| Running | Aborted | ChannelMut::abort() |
| Running | Paused | ChannelMut::pause() |
| Running | AwaitingApproval | ChannelMut::await_approval() |
| Paused | Running | ChannelMut::resume() |
| AwaitingApproval | Running | ChannelMut::resolve_approval() |
| AwaitingApproval | Aborted | ChannelMut::abort() (rejected) |
Variants§
Running
Channel is actively running.
Paused
Channel is paused.
Can be resumed with ChannelMut::resume().
AwaitingApproval
Channel is waiting for Human approval (HIL).
Approval is a core part of the Channel lifecycle: LLM tool calls require human authorization before execution. This is not an external concern but an intrinsic state of the orchestration flow.
Completed
Channel completed successfully.
Aborted
Channel was aborted with a reason.
The reason string provides context for debugging and logging.
Trait Implementations§
Source§impl Clone for ChannelState
impl Clone for ChannelState
Source§fn clone(&self) -> ChannelState
fn clone(&self) -> ChannelState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelState
impl Debug for ChannelState
Source§impl PartialEq for ChannelState
impl PartialEq for ChannelState
impl Eq for ChannelState
impl StructuralPartialEq for ChannelState
Auto Trait Implementations§
impl Freeze for ChannelState
impl RefUnwindSafe for ChannelState
impl Send for ChannelState
impl Sync for ChannelState
impl Unpin for ChannelState
impl UnsafeUnpin for ChannelState
impl UnwindSafe for ChannelState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.