pub struct Session { /* private fields */ }Implementations§
Source§impl Session
impl Session
pub fn spawn(program: &str, lib_dir: &Path) -> Result<Self, EngineError>
pub fn is_finished(&self) -> bool
Sourcepub fn exit_status(&mut self) -> Option<ExitStatus>
pub fn exit_status(&mut self) -> Option<ExitStatus>
The exit status once the program has finished; blocks until then.
Sourcepub fn kill(&mut self)
pub fn kill(&mut self)
Stop the run. The first request sends the hangup a closing terminal would send to every process in the run’s group; a later one, while any of them is still running, kills them outright.
Sourcepub fn survivors(&mut self) -> usize
pub fn survivors(&mut self) -> usize
How many processes of the run are still alive, for example ones that ignored the hangup after the shell itself ended.
Sourcepub fn stop_requested(&self) -> bool
pub fn stop_requested(&self) -> bool
True once a stop was requested.
pub fn resize(&self, rows: u16, cols: u16)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Session
impl !Sync for Session
impl !UnwindSafe for Session
impl Freeze for Session
impl Send for Session
impl Unpin for Session
impl UnsafeUnpin for Session
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> 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.