pub struct ControlShell { /* private fields */ }Expand description
Windows-native control shell for Rusty Stack operations.
All operations use shared Rust contracts — no cmd.exe or powershell.exe
subprocess is spawned.
Implementations§
Source§impl ControlShell
impl ControlShell
Sourcepub fn new(backend_mode: BackendMode) -> Self
pub fn new(backend_mode: BackendMode) -> Self
Create a new control shell with the given backend mode.
Sourcepub fn register_service(
&mut self,
config: ServiceConfig,
) -> Result<(), ServiceError>
pub fn register_service( &mut self, config: ServiceConfig, ) -> Result<(), ServiceError>
Register a service with the control shell.
Sourcepub fn backend_mode(&self) -> BackendMode
pub fn backend_mode(&self) -> BackendMode
Get the current backend mode.
Sourcepub fn services(&self) -> &ServiceRegistry
pub fn services(&self) -> &ServiceRegistry
Get a reference to the service registry.
Sourcepub fn status_check(&self) -> ControlResult
pub fn status_check(&self) -> ControlResult
Perform a system status check.
Reports platform, backend mode, and WSL2 status using shared Rust contracts. No shell subprocess is spawned.
Sourcepub fn translate_path(&self, path: &str) -> ControlResult
pub fn translate_path(&self, path: &str) -> ControlResult
Translate a path between Windows and WSL2 formats.
Auto-detects direction based on path format.
Sourcepub fn list_services(&self) -> ControlResult
pub fn list_services(&self) -> ControlResult
List all registered services.
Returns service configurations without starting any processes.
Sourcepub fn check_health(&self) -> ControlResult
pub fn check_health(&self) -> ControlResult
Check health of all registered services.
Returns health check results. Since we don’t start actual HTTP servers in this module, this returns the health URLs that should be checked.
Sourcepub fn wsl_check(&self) -> ControlResult
pub fn wsl_check(&self) -> ControlResult
Detect WSL2 and run health checks.
Uses shared Rust contracts for detection and health checking. No shell subprocess is spawned for the detection itself.
Trait Implementations§
Source§impl Clone for ControlShell
impl Clone for ControlShell
Auto Trait Implementations§
impl Freeze for ControlShell
impl RefUnwindSafe for ControlShell
impl Send for ControlShell
impl Sync for ControlShell
impl Unpin for ControlShell
impl UnsafeUnpin for ControlShell
impl UnwindSafe for ControlShell
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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