Enum pty_shell::tty::Fork [] [src]

pub enum Fork {
    Parent(i32Master),
    Child(Slave),
}

Variants

Methods

impl Fork
[src]

The constructor function new forks the program and returns the current pid.

The constructor function from_ptmx forks the program and returns the current pid for a default PTMX's path.

Waits until it's terminated.

The function is_parent returns the pid or parent or none.

The function is_child returns the pid or child or none.

Trait Implementations

impl Drop for Fork
[src]

impl Debug for Fork
[src]

Formats the value using the given formatter.

impl PtyShell for Fork
[src]