pub struct DaemonShellRuntime { /* private fields */ }Expand description
Shell runtime backed by a winxd Unix-domain socket.
Implementations§
Trait Implementations§
Source§impl Clone for DaemonShellRuntime
impl Clone for DaemonShellRuntime
Source§impl Debug for DaemonShellRuntime
impl Debug for DaemonShellRuntime
Source§impl ShellRuntime for DaemonShellRuntime
impl ShellRuntime for DaemonShellRuntime
fn configure_session<'a>( &'a self, bash_state: &'a mut BashState, transition: ShellSessionTransition, ) -> ShellRuntimeConfigureFuture<'a>
Source§fn attach_session<'a>(
&'a self,
bash_state: &'a mut BashState,
) -> ShellRuntimeConfigureFuture<'a>
fn attach_session<'a>( &'a self, bash_state: &'a mut BashState, ) -> ShellRuntimeConfigureFuture<'a>
Reattach an adapter to its existing session. External runtimes retain
their historical mode-refresh behavior; native runtimes override this
with a non-mutating fast path.
fn run_action<'a>( &'a self, bash_state: &'a Arc<Mutex<Option<BashState>>>, command: BashCommand, ) -> ShellRuntimeFuture<'a>
Source§fn run_action_detailed<'a>(
&'a self,
bash_state: &'a Arc<Mutex<Option<BashState>>>,
command: BashCommand,
options: ShellActionOptions,
) -> ShellRuntimeDetailedFuture<'a>
fn run_action_detailed<'a>( &'a self, bash_state: &'a Arc<Mutex<Option<BashState>>>, command: BashCommand, options: ShellActionOptions, ) -> ShellRuntimeDetailedFuture<'a>
Rich adapter path used by MCP orchestration. External runtime
implementations remain source-compatible through this default.
fn supports_generation_bound_actions(&self) -> ShellRuntimeBoolFuture<'_>
Source§fn describe_session<'a>(
&'a self,
bash_state: &'a Arc<Mutex<Option<BashState>>>,
) -> ShellRuntimeStatusFuture<'a>
fn describe_session<'a>( &'a self, bash_state: &'a Arc<Mutex<Option<BashState>>>, ) -> ShellRuntimeStatusFuture<'a>
Describe the session without mutating it. The default inspects the
in-process PTY; daemon-backed runtimes ask the guardian that owns it.
Source§fn supports_generation_bound_actions_for<'a>(
&'a self,
bash_state: &'a Arc<Mutex<Option<BashState>>>,
) -> ShellRuntimeBoolFuture<'a>
fn supports_generation_bound_actions_for<'a>( &'a self, bash_state: &'a Arc<Mutex<Option<BashState>>>, ) -> ShellRuntimeBoolFuture<'a>
Session-aware capability probe. Daemon-backed runtimes override this so
the answer comes from the guardian that owns this shell, not merely from
the stable control process in front of it.
fn interrupt<'a>( &'a self, bash_state: &'a Arc<Mutex<Option<BashState>>>, ) -> ShellRuntimeUnitFuture<'a>
Source§fn interrupt_generation<'a>(
&'a self,
bash_state: &'a Arc<Mutex<Option<BashState>>>,
expected_generation: Option<u64>,
) -> ShellRuntimeBoolFuture<'a>
fn interrupt_generation<'a>( &'a self, bash_state: &'a Arc<Mutex<Option<BashState>>>, expected_generation: Option<u64>, ) -> ShellRuntimeBoolFuture<'a>
Interrupt only the exact command generation owned by a Task. The
conservative default refuses generation-bound interruption.
Source§fn interrupt_execution<'a>(
&'a self,
bash_state: &'a Arc<Mutex<Option<BashState>>>,
expected: Option<ShellExecutionToken>,
) -> ShellRuntimeBoolFuture<'a>
fn interrupt_execution<'a>( &'a self, bash_state: &'a Arc<Mutex<Option<BashState>>>, expected: Option<ShellExecutionToken>, ) -> ShellRuntimeBoolFuture<'a>
Interrupt only the complete execution identity. External runtimes keep
working through the generation-only conservative default.
Source§fn cancel_pending_action<'a>(
&'a self,
bash_state: &'a Arc<Mutex<Option<BashState>>>,
cancellation_key: &'a str,
) -> ShellRuntimeBoolFuture<'a>
fn cancel_pending_action<'a>( &'a self, bash_state: &'a Arc<Mutex<Option<BashState>>>, cancellation_key: &'a str, ) -> ShellRuntimeBoolFuture<'a>
Cancel a command that is reserved remotely but has not reached the PTY.
Embedded runtimes use the in-process cancellation flag and need no
additional reservation protocol.
Source§fn terminate_session<'a>(
&'a self,
thread_id: &'a str,
) -> ShellRuntimeUnitFuture<'a>
fn terminate_session<'a>( &'a self, thread_id: &'a str, ) -> ShellRuntimeUnitFuture<'a>
Release the runtime-owned resources for one logical session.
Auto Trait Implementations§
impl !RefUnwindSafe for DaemonShellRuntime
impl !UnwindSafe for DaemonShellRuntime
impl Freeze for DaemonShellRuntime
impl Send for DaemonShellRuntime
impl Sync for DaemonShellRuntime
impl Unpin for DaemonShellRuntime
impl UnsafeUnpin for DaemonShellRuntime
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<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
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.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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> ⓘ
Converts
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> ⓘ
Converts
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