Enum pty::prelude::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 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
impl Copy for ForkError
[src]
impl Debug for ForkError
[src]
impl Display for ForkError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
The function fmt
formats the value using the given formatter.
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.