pub(crate) enum HoldReason {
NotRunning,
Starting,
NeedsLogin,
Limited,
Idle,
Quota,
ApiOffline,
PeerOffline,
}Variants§
NotRunning
A known agent with no process here.
Starting
The agent’s pane is open here, but its controller is not there yet: AgentMux is starting and
resuming its panes (backend::reactive::controller_wait). Delivered when the controller registers; the
sender is told what a stopped agent’s sender is while it is started (HeldStart::Starting).
NeedsLogin
The agent is here but its spawn gate refused: not signed in. Also an
agent whose sign-in was refused (AgentState::SignedOut): to the
sender it is the same condition.
Limited
The agent is here but its account is out of quota
(AgentState::Limited). Held from step 2c of
docs/specs/SPEC_UNRESPONSIVE_AGENTS_2026_10_23.md §5.
Idle
The agent is here and signed in, but its session has been quiet past the
prompt cache’s lifetime and the message is routine
(backend::cold_hold).
Quota
Quota mode is tight, the message is routine and the agent has no turn in flight
(backend::quota_mode).
ApiOffline
The agent is between turns and its model API is offline (backend::agent_status::decide).
PeerOffline
The agent runs on a LAN peer that is not reachable now (server::reactive::peer_hold): kept on the
sender’s instance and delivered when the peer is seen again.
Implementations§
Source§impl HoldReason
impl HoldReason
pub(crate) fn as_str(self) -> &'static str
Sourcepub(crate) fn wait_reason(self) -> WaitReason
pub(crate) fn wait_reason(self) -> WaitReason
The same reason in agent_availability’s terms.
Sourcepub(crate) fn for_state(state: AgentState) -> Option<Self>
pub(crate) fn for_state(state: AgentState) -> Option<Self>
The reason a message to an agent in state is held, or None when
that state doesn’t hold messages.
Trait Implementations§
Source§impl Clone for HoldReason
impl Clone for HoldReason
Source§fn clone(&self) -> HoldReason
fn clone(&self) -> HoldReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for HoldReason
Source§impl Debug for HoldReason
impl Debug for HoldReason
impl Eq for HoldReason
Source§impl PartialEq for HoldReason
impl PartialEq for HoldReason
impl StructuralPartialEq for HoldReason
Auto Trait Implementations§
impl Freeze for HoldReason
impl RefUnwindSafe for HoldReason
impl Send for HoldReason
impl Sync for HoldReason
impl Unpin for HoldReason
impl UnsafeUnpin for HoldReason
impl UnwindSafe for HoldReason
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more