Struct nix::pty::ForkptyResult
pub struct ForkptyResult {
pub master: RawFd,
pub fork_result: ForkResult,
}
Documentation
Representation of a master with a forked pty
This is returned by forkpty
. Note that this type does not implement Drop
, so the user
must manually close the file descriptors.
Fields
pub master: RawFd
The master port in a virtual pty pair
pub fork_result: ForkResult
Metadata about forked process
Trait Implementations
impl Clone for ForkptyResult
fn clone(&Self) -> ForkptyResult
impl Copy for ForkptyResult
impl Debug for ForkptyResult
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
Auto Trait Implementations
impl RefUnwindSafe for ForkptyResult
impl Send for ForkptyResult
impl Sync for ForkptyResult
impl Unpin for ForkptyResult
impl UnwindSafe for ForkptyResult
Blanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T