Struct OpenptyResult

pub struct OpenptyResult { pub master: OwnedFd, pub slave: OwnedFd }

Representation of a master/slave pty pair

This is returned by openpty.

Fields

master: OwnedFd

The master port in a virtual pty pair

slave: OwnedFd

The slave port in a virtual pty pair

Trait Implementations

impl Debug for OpenptyResult

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl Freeze for OpenptyResult

impl RefUnwindSafe for OpenptyResult

impl Send for OpenptyResult

impl Sync for OpenptyResult

impl Unpin for OpenptyResult

impl UnsafeUnpin for OpenptyResult

impl UnwindSafe for OpenptyResult

Blanket Implementations

impl<T> Any for OpenptyResult where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for OpenptyResult where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for OpenptyResult where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for OpenptyResult

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for OpenptyResult where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for OpenptyResult where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for OpenptyResult where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>