pub struct PersistentSubprocessController { /* private fields */ }Expand description
PersistentSubprocessController keeps a long-running CLI process alive, sending user messages as NDJSON lines on stdin.
Implementations§
Source§impl PersistentSubprocessController
impl PersistentSubprocessController
Sourcepub fn send_user_message_with_images_from(
&self,
message: String,
origin: Option<TurnInput>,
images: Vec<Value>,
record: RecordOrigin,
expires_at_ms: Option<i64>,
notes: Vec<(String, String)>,
) -> Result<SendOutcome, String>
pub fn send_user_message_with_images_from( &self, message: String, origin: Option<TurnInput>, images: Vec<Value>, record: RecordOrigin, expires_at_ms: Option<i64>, notes: Vec<(String, String)>, ) -> Result<SendOutcome, String>
[Self::send_user_message_outcome_from] with Claude content blocks
(images, PDFs) ahead of the text, as the composer sends attachments
(prompt::claude_user_line). The stored copy drops their base64
(append_delivered_message).
record says where the message came from and which [AgentMux] notes
went with it; the record written for it carries both
(Self::append_delivered_message), also when it waits in the queue.
expires_at_ms is the sender’s expiry (issue #3894): only a jekt has
one. It rides the queued entry, so a message that waits out its
expiry behind a starting, restarting or stopping process is dropped
at write time instead of written stale.
notes are the [AgentMux] notes the message carries, with their keys:
if the queued entry is dropped at that expiry, they are held again for
the next message instead of going with it.
Sourcepub fn note_into_turn_or_hold(&self, key: &str, text: &str) -> bool
pub fn note_into_turn_or_hold(&self, key: &str, text: &str) -> bool
srv’s own note text into the running turn; with no turn running, or
a process that can’t take a write now, held under key for the next
turn (reactive::held_notes) instead. The check and the write share
one acquisition of inner, which the turn-end handler takes too
(Self::turn_boundary_locked), so the turn can’t end between them
and the note never starts one. Returns whether it joined the turn.
Sourcepub fn answer_question(
&self,
tool_use_id: String,
answers: Value,
) -> Result<(), String>
pub fn answer_question( &self, tool_use_id: String, answers: Value, ) -> Result<(), String>
Answer a parked AskUserQuestion via the Agent SDK control protocol.
The CLI asked us with a can_use_tool control_request (parked in
pending_questions by the stdout reader); we reply with a
control_response carrying updatedInput.answers. This is the ONLY
mechanism the CLI accepts — delivering a tool_result on stdin does NOT
work (the CLI auto-rejects AskUserQuestion within the turn). answers is
the JSON object mapping each question’s text to the selected label(s) or
free-text. Process must already be running (agent is mid-turn, blocked on
this answer). Spec: docs/specs/SPEC_AGENT_CONTROL_PROTOCOL_2026_06_15.md §2.3.
pending_questions is in-memory-only, scoped to THIS controller
instance — a fresh instance (pane reopen, or any process respawn)
starts with an empty map even though the persisted transcript can
still show the question as the tail node (deliberately preserved by
scrubOrphanedInProgress as “may still be answerable”). The frontend
(useAgentQuestions.ts’s SAFE_TO_RETRY_VIA_FOLLOWUP allowlist)
matches on this error’s text (the “no pending AskUserQuestion” prefix)
to redeliver as a follow-up message instead of rolling back — keep
that exact prefix stable if this message ever changes. See
docs/reports/REPORT_WORKING_STATE_REGRESSION_AND_STUCK_QUESTION_PANEL_2026_07_27.md §2.7/§2.8.
Sourcepub fn deny_question(
&self,
tool_use_id: String,
message: String,
) -> Result<(), String>
pub fn deny_question( &self, tool_use_id: String, message: String, ) -> Result<(), String>
Decline a parked AskUserQuestion via the Agent SDK control protocol
— the Cancel button / Escape in AgentQuestionPanel.tsx. Structurally a
mirror of answer_question (same pending_questions lookup/removal,
same dead-air safety net — the CLI can abandon a pending tool_use whose
turn already ended regardless of whether the response was an allow or a
deny), but sends behavior: "deny" with a message instead of
behavior: "allow" with updatedInput. This is a general, documented
Agent SDK mechanism (PermissionResult deny case for the canUseTool
callback) — AskUserQuestion goes through the exact same callback as
ordinary tool permission requests, confirmed against the official Agent
SDK docs (code.claude.com/docs/en/agent-sdk/user-input). Spec:
docs/specs/SPEC_AGENT_CONTROL_PROTOCOL_2026_06_15.md.
See answer_question’s doc comment for the pending_questions
in-memory-only caveat and the exact error-prefix stability requirement
(useAgentQuestions.ts’s SAFE_TO_RETRY_VIA_FOLLOWUP allowlist matches
on this method’s error text too, since it shares the identical lookup).
Sourcepub fn decide_tool_permission(
&self,
tool_use_id: String,
outcome: &str,
feedback: Option<String>,
) -> Result<(), String>
pub fn decide_tool_permission( &self, tool_use_id: String, outcome: &str, feedback: Option<String>, ) -> Result<(), String>
Decide a parked ordinary tool-permission request via the Agent SDK
control protocol — the eventual AgentDecisionPanel Allow/Deny
buttons, once should_route_to_decision_panel is flipped on (Phase 2,
SPEC_DECISION_PROMPT_2026_04_24.md / SPEC_AGENT_CONTROL_PROTOCOL_2026_06_15.md
§5). Mirrors answer_question/deny_question exactly — same
pending_* map lookup/removal, same dead-air safety net — combined
into one method because the frontend’s tool:decision RPC already
carries outcome as a single field rather than two separate
commands.
outcome must be "allow" or "deny" — validated by the caller
(websocket.rs’s tooldecision handler) before this is reached, the
same division of responsibility as that handler’s existing scope
validation. An unrecognized value is treated as "deny" (fail
closed) rather than panicking or silently allowing.
On allow, updatedInput echoes the ORIGINAL input verbatim — this
method does not support editing the call before approving it (no UI
for that exists; SPEC_DECISION_PROMPT_2026_04_24.md never scoped
one). On deny, feedback becomes the CLI-facing message
(SPEC_DECISION_PROMPT’s G6: “Denials carry user-typed feedback
verbatim to the agent”); a caller with no feedback gets a generic
default so the model still learns the call was refused.
See answer_question’s doc comment for the pending_permissions
in-memory-only caveat (a fresh controller instance — pane reopen, any
process respawn — starts with an empty map) and for why the error
text names the tool_use_id and the likely cause.
Source§impl PersistentSubprocessController
impl PersistentSubprocessController
pub fn stop_process(&self, force: bool) -> Result<(), String>
Sourcepub fn start_fresh_session(&self) -> Result<Option<String>, &'static str>
pub fn start_fresh_session(&self) -> Result<Option<String>, &'static str>
Agents fresh (SPEC_AGENT_SELF_COMPACTION_2026_10_23.md §3.3): end
this provider session so the next message starts a new one. Clears the
session id here and on the block, so nothing resumes it, then stops the
CLI as a Stop does. The next message spawns a fresh CLI onto the pane’s
history (no continuation packet: spawn.rs skips it for this start), and
a new segment of the agent’s chain (continuity_segments), so the old
session stays in its record. Only between turns. Returns the old id.
Sourcepub fn can_release(&self) -> bool
pub fn can_release(&self) -> bool
Whether release_to_other_instance would do anything: this pane holds a lease and has a process to stop.
pub fn session_id(&self) -> Option<String>
Sourcepub fn needs_spawn(&self) -> bool
pub fn needs_spawn(&self) -> bool
True when this controller is registered but has no live process and no
spawn already in flight — the state a lazily-registered controller sits
in between register (“spawns on first message”) and its first
send_message.
In that state inject_message cannot deliver: it has no spawn config and
only writes to a live stdin_tx, so it returns “persistent process not
running”. The caller can, however, start a turn — run_agent_turn
re-reads the spawn config from block metadata and calls send_message,
which does spawn. This predicate is what lets the reactive delivery path
tell those two situations apart. See
docs/reports/REPORT_JEKT_DELIVERY_DROPS_UNSPAWNED_PERSISTENT_AGENTS_2026_09_03.md.
The invariant this must uphold: needs_spawn() == true implies a
subsequent send_message takes decide_send_action’s BecomeSpawner
branch — i.e. it really spawns and delivers. It must never be true in a
state where send_message would instead return SendAction::Queued,
because Queued returns Ok(()) having delivered nothing, the reactive
path maps that to Ok(true), and the caller is told the message landed
when it is still sitting in the queue. cloud_subscriber only retries
on !success, so a false success is a permanently lost message.
That is why all three exclusions are here, and each mirrors one of
decide_send_action’s own guards:
stdin_tx.is_none()— a live process is steerable;inject_messagehandles it and no turn start is wanted.!spawning_in_progress— a caller has already claimed this spawn round (see that field’s doc comment on the concurrent-spawn TOCTOU race). Reporting “needs spawn” here would invite a second, racing spawn and orphan a child.!drain_claim— aRetryFlushdrain owns the round. This one is subtle and was missed on the first cut (reagent P1 on PR #2960): when a drain’s target process dies mid-flush, the drain deliberately retains its claim for the fallback respawn while the exit handler clearsstdin_tx. Without this term, that window reports “needs spawn”,decide_send_actionthen returnsQueuedon the still-held claim, and the message is silently queued while the caller is told it was delivered.
Both excluded windows are retryable rather than lost: the caller gets the original delivery error back, which is what lets it come again.
Racy by nature, and safe to be: the process can exit the instant after
this returns false. It is a routing hint, not a guarantee — the spawn
claim inside send_message is what actually serialises spawners. What
it must not do is report true for a state that cannot spawn.
Sourcepub fn request_restart_when_idle(&self) -> bool
pub fn request_restart_when_idle(&self) -> bool
Ask this controller to restart itself once the current turn ends, instead of being torn down and replaced right now.
Returns true when the restart was deferred (a turn is in flight, so
the caller must NOT replace the controller), false when the pane is
idle and an immediate replace is safe — the caller then proceeds
exactly as before.
Called from resync_controller’s forced-replace path. See
[PersistentInner::restart_when_idle] for what the old
kill-immediately behaviour destroyed.
Deliberately keyed on the health monitor’s is_active_turn rather
than on stdin_tx.is_some(): a live process between turns is idle and
should be replaced immediately (that’s the common /model case, and
deferring it would leave the change unapplied until the next turn
happened to end). It’s specifically an IN-FLIGHT turn that must not be
interrupted.
Source§impl PersistentSubprocessController
The MCP self-heal’s steps for this pane (backend::mcp_health decides
them; docs/specs/SPEC_AGENT_MCP_SELF_HEAL_2026_10_10.md).
impl PersistentSubprocessController
The MCP self-heal’s steps for this pane (backend::mcp_health decides
them; docs/specs/SPEC_AGENT_MCP_SELF_HEAL_2026_10_10.md).
Sourcepub fn mcp_beat(&self, beat: &Beat)
pub fn mcp_beat(&self, beat: &Beat)
A heartbeat from this pane’s MCP process (POST /api/v1/agent/self/mcp-beat):
it says whether the server is wedged, which is repaired like one that
didn’t connect (#2614).
Sourcepub fn mcp_wedged(&self, process: &str, wedge: &Wedge)
pub fn mcp_wedged(&self, process: &str, wedge: &Wedge)
The watcher found process’s MCP server silent. Nothing if that
process is no longer this pane’s.
Sourcepub fn mcp_heal_now(&self) -> Result<(), &'static str>
pub fn mcp_heal_now(&self) -> Result<(), &'static str>
agentmux-mcp doctor --heal: start the repair over now. Err says why
nothing started (mcp_health::heal_now).
Source§impl PersistentSubprocessController
impl PersistentSubprocessController
Sourcepub async fn check_admission(
&self,
uid: &str,
agent: &str,
) -> Result<(), String>
pub async fn check_admission( &self, uid: &str, agent: &str, ) -> Result<(), String>
The early admission check (spec I9) for this controller’s agent: refuses while another pane of this process or another instance holds it. Runs before any shared write.
Sourcepub fn release_to_other_instance(&self, deadline: Instant) -> bool
pub fn release_to_other_instance(&self, deadline: Instant) -> bool
Hand this pane’s agent over to another AgentMux instance that asked
for it (spec §4.6, POST /agentmux/agent/release): if this pane’s CLI
process holds the agent’s single-live-instance lease, stop it
gracefully — stdin EOF, so a turn in flight finishes, then kill at
the deadline — and let its exit release the lease. false when this
pane holds nothing (no process, or no lease).
Source§impl PersistentSubprocessController
impl PersistentSubprocessController
Sourcepub fn send_message_from(
&self,
message: String,
config: PersistentSpawnConfig,
origin: Option<TurnInput>,
record: RecordOrigin,
) -> Result<(), String>
pub fn send_message_from( &self, message: String, config: PersistentSpawnConfig, origin: Option<TurnInput>, record: RecordOrigin, ) -> Result<(), String>
[Self::send_message], saying who the message is from, so the turn it
starts (or joins) carries that provenance (SPEC_AGENT_SELF_QUIT §6.3).
None = unknown, which never counts as the user.
Sourcepub fn send_message_with_images_from(
&self,
message: String,
images: Vec<Value>,
config: PersistentSpawnConfig,
origin: Option<TurnInput>,
record: RecordOrigin,
) -> Result<(), String>
pub fn send_message_with_images_from( &self, message: String, images: Vec<Value>, config: PersistentSpawnConfig, origin: Option<TurnInput>, record: RecordOrigin, ) -> Result<(), String>
Self::send_message_from with Anthropic image content blocks
placed before the text (image attachments,
SPEC_AGENT_PANE_IMAGE_ATTACHMENTS_2026_09_26.md §6.6). With no images
the line is byte-for-byte what send_message_from always wrote.
Stored copies drop the images again — see
persist_message_to_blockfile.
Source§impl PersistentSubprocessController
impl PersistentSubprocessController
pub fn new( tab_id: String, block_id: String, broker: Option<Arc<Broker>>, event_bus: Option<Arc<EventBus>>, mstore: Option<Arc<Store>>, filestore: Option<Arc<FileStore>>, ) -> Self
Sourcepub fn with_identity_stores(
self,
id_store: Option<Arc<Store>>,
identity_store: Option<Arc<Store>>,
auth_key: String,
) -> Self
pub fn with_identity_stores( self, id_store: Option<Arc<Store>>, identity_store: Option<Arc<Store>>, auth_key: String, ) -> Self
Supplies the dependencies start()’s eager-resume path needs
(SPEC_PERSISTENT_CONTROLLER_EAGER_RESUME_ON_RECONNECT_2026_09_20.md):
the Layer 3 identity/credential spawn gate’s two stores, and the
auth key a spawned CLI needs for AGENTMUX_AUTH_KEY (MPS publish
scoping via the bashwrap-invoked tool wrapper).
A separate builder step, not three more new() parameters, so every
existing caller — the ~15 test constructions in this file among
them — is unaffected. A controller built without this call simply
cannot eager-resume even when agent:sessionid is present; it falls
back to start()’s ordinary lazy “wait for the first message” path
rather than spawning without the identity gate. That fallback is the
deliberately safe default: eagerly resuming a possibly-deauthed
agent’s session on whatever ambient credential happens to be present
would silently reintroduce the exact vulnerability class
SPEC_ACCOUNT_DELETE_DEAUTH_LAYERS_2_4_2026_07_14.md closed. See
start()’s own doc comment for the full reasoning.
Sourcepub fn with_agent_lease_store(
self,
registry: Option<Arc<Registry>>,
boot_id: Arc<str>,
) -> Self
pub fn with_agent_lease_store( self, registry: Option<Arc<Registry>>, boot_id: Arc<str>, ) -> Self
Supplies the single-live-instance lease store (under the shared agent
registry root) and this srv’s boot id. A separate builder step for
the same reason as with_identity_stores. Without it the controller
takes no lease — the pre-Phase-1 behaviour.
Sourcepub fn set_self_ref(self: &Arc<Self>)
pub fn set_self_ref(self: &Arc<Self>)
Sets the weak self-reference used by the process-waiter task to call
back into retry_after_resume_failure once a doomed process (stale
--resume session id) actually exits. Mirrors SubprocessController:: set_self_ref’s queued-message-drain pattern. Must be called by the
caller right after wrapping a fresh instance in Arc — a controller
that’s never had this called simply never retries (the check is a
harmless no-op Weak::upgrade() failure), so this is safe to skip
for e.g. throwaway test instances.
Trait Implementations§
Source§impl Controller for PersistentSubprocessController
impl Controller for PersistentSubprocessController
Source§fn start(
&self,
block_meta: MetaMapType,
_rt_opts: Option<Value>,
_force: bool,
) -> Result<(), String>
fn start( &self, block_meta: MetaMapType, _rt_opts: Option<Value>, _force: bool, ) -> Result<(), String>
Lazy by default — “spawns on first message” — EXCEPT for a pane
resuming an existing session across a backend restart/reconnect, per
SPEC_PERSISTENT_CONTROLLER_EAGER_RESUME_ON_RECONNECT_2026_09_20.md.
Without this, every persistent agent pane comes back from a crash/
OOM/update as an inert shell — correct layout, correct chrome, view: "agent", no live process — until a human or another agent happens to
message it. Live incident: 3 of 7 panes in one window silently never
respawned after 2026-09-20’s restarts (issue #3463).
agent:sessionid meta present and non-empty is the signal: this pane
has a real, interrupted conversation rather than being genuinely new
(which still spawns lazily, unchanged — no reason to burn a process
before it’s needed). Mirrors ShellController::start()’s already-
established “transparently revive on restart” behavior for shells.
Eager resume is gated on the SAME Layer 3 identity/credential spawn
gate a live message send goes through
(identity::resolver::inject_identity_env,
SPEC_ACCOUNT_DELETE_DEAUTH_LAYERS_2_4_2026_07_14.md) — this is not
an optional hardening pass, it is why this method does not simply
spawn unconditionally the moment a session id is found. Skipping the
gate here would let an agent whose bound account was deleted/revoked
between the crash and the restart get silently respawned anyway, on
whatever ambient credential happens to be lying around: exactly the
vulnerability class that gate exists to close, reintroduced through a
call site the gate was never wired into. Any of the following falls
back to today’s lazy behavior — NOT a hard error, since a pane that
merely stays inert is still recoverable by a message, unlike one
spawned on the wrong credentials:
id_store/identity_store/auth_keyweren’t supplied (i.e. this controller was constructed withoutwith_identity_stores()— should not happen for a productionresync_controllercall, but a test or future caller that omits it must not silently spawn ungated rather than just not eager-resuming).mstoreis unavailable.cmd/cmd:argsmeta is missing (should not happen for a pane that has ever actually run —agent_open.rsalways seeds them — but guessing CLI flags for a persistent agent is worse than not eager-resuming).- The gate itself returns
Err(SpawnGateError).
Source§fn shutdown(&self, deadline: Instant) -> ShutdownFuture
fn shutdown(&self, deadline: Instant) -> ShutdownFuture
Pane-close shutdown (spec §9.3), built on the Phase 0 measurements (§5.1): EOF alone does NOT end a running turn — the CLI finishes it first — but the control-protocol interrupt ends it in ~2s, and EOF then exits the process in ~0.5s. So: interrupt an active turn, wait for its result, EOF, and force-kill only at the deadline.
Source§fn stop(&self, _graceful: bool, new_status: &str) -> Result<(), String>
fn stop(&self, _graceful: bool, new_status: &str) -> Result<(), String>
graceful waits for process to exit; new_status is the target state.Source§fn get_runtime_status(&self) -> BlockControllerRuntimeStatus
fn get_runtime_status(&self) -> BlockControllerRuntimeStatus
Source§fn interrupt_turn(&self) -> Result<(), String>
fn interrupt_turn(&self) -> Result<(), String>
send_input(SIGINT), which kills the process (the session resumes at the next message).Source§fn send_input(
&self,
input: BlockInputUnion,
_seq: Option<u64>,
) -> Result<(), String>
fn send_input( &self, input: BlockInputUnion, _seq: Option<u64>, ) -> Result<(), String>
seq is the per-TermViewModel monotonic counter; None means fire-and-forget (no ordering).Source§fn turn_tracker(&self) -> Option<Arc<TurnActivityTracker>>
fn turn_tracker(&self) -> Option<Arc<TurnActivityTracker>>
None for
controllers that track no turns.Source§fn awaiting_user_reply(&self) -> bool
fn awaiting_user_reply(&self) -> bool
acp::reply_to_agent_request, msp_protocol), so they never wait.Source§fn pending_for_devices(&self) -> PendingFacts
fn pending_for_devices(&self) -> PendingFacts
Source§fn controller_type(&self) -> &str
fn controller_type(&self) -> &str
Source§fn agent_id(&self) -> Option<String>
fn agent_id(&self) -> Option<String>
ReactiveHandler::inject_message_inner, deliberately
NOT derived from ReactiveHandler’s own name_to_blocks/agent_info
maps (checking a registry against itself would be a tautology and
catch nothing). Default None for controller types that aren’t
jekt-addressable at all (e.g. plain terminals) — only ShellController
and PersistentSubprocessController currently override this, mirroring
the two paths that already resolve a jekt-registration identity at
spawn time (resolve_agent_id_for_jekt, muxbus_agent_id_from_env).Source§fn turn_provenance(&self) -> Option<TurnProvenance>
fn turn_provenance(&self) -> Option<TurnProvenance>
None = unknown, which never counts as the
user — the safe answer for controllers that can’t tell (ACP, App
Server, subprocess: both origins reach them through one method).Source§fn set_agent_id(&self, id: Option<String>)
fn set_agent_id(&self, id: Option<String>)
agent_id’s doc comment). Called whenever
ReactiveHandler::register_agent/register_agent_with_nonce
(re-)registers THIS block’s block_id under a (possibly different)
agent_id, so the two independently-written copies never drift apart
(#2697: agent_id() was captured once at spawn and never
refreshed, while the registry’s name bindings get re-keyed on every
register_agent call — e.g. handle_reactive_register’s
frontend-initiated HTTP path — causing a legitimately renamed or
reconfigured agent’s own messages to be falsely rejected as an
identity mismatch). Default no-op for controller types that don’t
override agent_id either.Source§fn stable_agent_id(&self) -> Option<String>
fn stable_agent_id(&self) -> Option<String>
AGENTMUX_AGENT_ID as captured
once at spawn, never refreshed. Distinct from agent_id,
which tracks the LIVE, renameable display name and is deliberately
refreshed every turn (see that method’s doc comment on #2697).
AGENTMUX_AGENT_ID is embedded verbatim in PR-body tags specifically
because it does NOT change if the agent is later renamed — but
ReactiveHandler’s registry only tracks one key per block, and
every turn’s agent_id() refresh evicts whatever this block was
previously registered under. ReactiveHandler::inject_message_inner’s
recipient-identity check (#2695) uses this alongside agent_id() so
a jekt addressed to the stable ID is validated correctly even after
the primary registry key has moved on to the live display name. See
INCIDENT_2026_09_09_JEKT_STABLE_ID_ALIAS.md. Default None,
mirroring agent_id’s default — only PersistentSubprocessController
currently overrides this.Source§fn stable_agent_uid(&self) -> Option<String>
fn stable_agent_uid(&self) -> Option<String>
db_agents.id) as carried in its
spawn env (AGENTMUX_AGENT_UID, set by build_persistent_spawn_env
since M1a), captured once at spawn like [stable_agent_id]. Backs the
registry’s UID confirmer: consulted only for targets that resolved by
UID, and None — a registered-but-not-yet-spawned controller, or a
block with no row — is “unverifiable”, not a mismatch. Default
None; only PersistentSubprocessController overrides this.Source§fn stop_for_replace(&self, new_status: &str) -> Result<(), String>
fn stop_for_replace(&self, new_status: &str) -> Result<(), String>
needs_replace path),
NOT because the block itself is being closed. Must terminate this
controller’s own CLI process so it doesn’t linger, but — unlike
stop() — must NOT reach any declared-background descendant the
process may have spawned (e.g. a task dev instance launched via
run_in_background: true); those must survive the replace. See
docs/specs/SPEC_BACKGROUND_TASK_TEARDOWN_SURVIVAL_2026_08_20.md. Read moreSource§fn last_output_ms(&self) -> Option<i64>
fn last_output_ms(&self) -> Option<i64>
None for controllers that don’t. The shell controller reports
its PTY output itself (ShellController::last_output_secs_ago).Auto Trait Implementations§
impl !Freeze for PersistentSubprocessController
impl !RefUnwindSafe for PersistentSubprocessController
impl !UnwindSafe for PersistentSubprocessController
impl Send for PersistentSubprocessController
impl Sync for PersistentSubprocessController
impl Unpin for PersistentSubprocessController
impl UnsafeUnpin for PersistentSubprocessController
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
§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<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