Struct OpenptyResult

struct OpenptyResult { ... }

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

Implementations

impl Debug for OpenptyResult

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

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

impl<T> Any for OpenptyResult

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for OpenptyResult

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for OpenptyResult

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

impl<T> From for OpenptyResult

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for OpenptyResult

fn into(self: 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 for OpenptyResult

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for OpenptyResult

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