pub enum ForkptyResult {
Parent {
child: Pid,
master: OwnedFd,
},
Child,
}Available on crate features
term and process only.Expand description
A successful result of forkpty().
Variants§
Parent
This is the parent process of the underlying fork.
Fields
Child
This is the child process of the underlying fork.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ForkptyResult
impl RefUnwindSafe for ForkptyResult
impl Send for ForkptyResult
impl Sync for ForkptyResult
impl Unpin for ForkptyResult
impl UnwindSafe for ForkptyResult
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes
Size for each variant:
Parent: 8 bytesChild: 0 bytes