Enum pty_shell::tty::ForkError
[−]
[src]
pub enum ForkError { Failure, SetsidFail, WaitpidFail, IsChild, IsParent, BadMaster(MasterError), BadSlave(SlaveError), BadDescriptorMaster(DescriptorError), BadDescriptorSlave(DescriptorError), }
The enum ForkError
defines the possible errors from constructor Fork.
Variants
Failure
Can't creates the child.
SetsidFail
Can't set the id group.
WaitpidFail
Can't suspending the calling process.
IsChild
Is child and not parent.
IsParent
Is parent and not child.
BadMaster(MasterError)
The Master occured a error.
BadSlave(SlaveError)
The Slave occured a error.
BadDescriptorMaster(DescriptorError)
The Master's Descriptor occured a error.
BadDescriptorSlave(DescriptorError)
The Slave's Descriptor occured a error.
Trait Implementations
impl Display for ForkError
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
The function fmt
formats the value using the given formatter.
impl Copy for ForkError
[src]
impl Error for ForkError
[src]
fn description(&self) -> &str
The function description
returns a short description of the error.
fn cause(&self) -> Option<&Error>
The function cause
returns the lower-level cause of this error, if any.
impl Debug for ForkError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Clone for ForkError
[src]
fn clone(&self) -> ForkError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more