pub struct ForkptyResult {
pub master: RawFd,
pub fork_result: ForkResult,
}
Expand description
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§
§master: RawFd
The master port in a virtual pty pair
fork_result: ForkResult
Metadata about forked process
Trait Implementations§
Source§impl Clone for ForkptyResult
impl Clone for ForkptyResult
Source§fn clone(&self) -> ForkptyResult
fn clone(&self) -> ForkptyResult
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ForkptyResult
impl Debug for ForkptyResult
impl Copy for ForkptyResult
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