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: RawFdThe master port in a virtual pty pair
pub fork_result: ForkResultMetadata about forked process
Trait Implementations
impl Clone for ForkptyResult
fn clone(&Self) -> ForkptyResultimpl Copy for ForkptyResultimpl Debug for ForkptyResult
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::ResultAuto Trait Implementations
impl RefUnwindSafe for ForkptyResultimpl Send for ForkptyResultimpl Sync for ForkptyResultimpl Unpin for ForkptyResultimpl UnwindSafe for ForkptyResultBlanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T