Enum ForkptyResult
pub enum ForkptyResult
A successful result of [forkpty()].
Variants
-
Parent { child: Pid, master: OwnedFd } This is the parent process of the underlying fork.
-
Child This is the child process of the underlying fork.
Trait Implementations
impl Debug for ForkptyResult
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl Freeze for ForkptyResult
impl RefUnwindSafe for ForkptyResult
impl Send for ForkptyResult
impl Sync for ForkptyResult
impl Unpin for ForkptyResult
impl UnsafeUnpin for ForkptyResult
impl UnwindSafe for ForkptyResult
Blanket Implementations
impl<T> Any for ForkptyResult
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ForkptyResult
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ForkptyResult
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ForkptyResult
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for ForkptyResult
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ForkptyResult
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ForkptyResult
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>