pub struct ProcessManager { /* private fields */ }Implementations§
Source§impl ProcessManager
impl ProcessManager
pub fn new(root: impl Into<PathBuf>) -> Self
pub fn start( &mut self, name: &str, command: &str, ) -> DevelopmentResult<ProcessSnapshot>
Sourcepub fn start_argv(
&mut self,
name: &str,
arguments: &[String],
cwd: &Path,
environment: &BTreeMap<String, String>,
) -> DevelopmentResult<ProcessSnapshot>
pub fn start_argv( &mut self, name: &str, arguments: &[String], cwd: &Path, environment: &BTreeMap<String, String>, ) -> DevelopmentResult<ProcessSnapshot>
Start an exact argv vector in a PTY without interpolating a shell command.
DAP reverse requests use this path so adapter-provided arguments remain separate values while Glass retains process-tree ownership and output.
pub fn send_input(&mut self, name: &str, input: &str) -> DevelopmentResult<()>
Sourcepub fn close_input(&mut self, name: &str) -> DevelopmentResult<()>
pub fn close_input(&mut self, name: &str) -> DevelopmentResult<()>
Finalize process input while retaining output and lifecycle tracking.
Bounded, non-interactive commands use this after spawning. Unix shells observe EOF. Windows ConPTY turns a closed input pipe into Control-C, so its owned console receives the platform EOF key (Control-Z then Enter) and retains the input handle until the child exits naturally.
pub fn resize( &mut self, name: &str, cols: u16, rows: u16, ) -> DevelopmentResult<()>
pub fn stop(&mut self, name: &str) -> DevelopmentResult<ProcessSnapshot>
pub fn restart(&mut self, name: &str) -> DevelopmentResult<ProcessSnapshot>
pub fn remove(&mut self, name: &str) -> DevelopmentResult<ProcessSnapshot>
pub fn poll(&mut self) -> DevelopmentResult<Vec<ProcessSnapshot>>
pub fn list(&mut self) -> Vec<ProcessSnapshot>
Sourcepub fn list_checked(&mut self) -> DevelopmentResult<Vec<ProcessSnapshot>>
pub fn list_checked(&mut self) -> DevelopmentResult<Vec<ProcessSnapshot>>
Return current process state without discarding polling failures.
pub fn output(&self, name: &str) -> DevelopmentResult<String>
Trait Implementations§
Source§impl Debug for ProcessManager
impl Debug for ProcessManager
Source§impl Drop for ProcessManager
impl Drop for ProcessManager
Auto Trait Implementations§
impl !RefUnwindSafe for ProcessManager
impl !Sync for ProcessManager
impl !UnwindSafe for ProcessManager
impl Freeze for ProcessManager
impl Send for ProcessManager
impl Unpin for ProcessManager
impl UnsafeUnpin for ProcessManager
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> 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