Struct nix::pty::OpenptyResult
pub struct OpenptyResult {
pub master: RawFd,
pub slave: RawFd,
}Documentation
Representation of a master/slave pty pair
This is returned by openpty. 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 slave: RawFdThe slave port in a virtual pty pair
Trait Implementations
impl Clone for OpenptyResult
fn clone(&Self) -> OpenptyResultimpl Copy for OpenptyResultimpl Debug for OpenptyResult
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Resultimpl Eq for OpenptyResultimpl Hash for OpenptyResult
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()impl PartialEq<OpenptyResult> for OpenptyResult
fn eq(&Self, other: &OpenptyResult) -> boolfn ne(&Self, other: &OpenptyResult) -> boolimpl StructuralEq for OpenptyResultimpl StructuralPartialEq for OpenptyResultAuto Trait Implementations
impl RefUnwindSafe for OpenptyResultimpl Send for OpenptyResultimpl Sync for OpenptyResultimpl Unpin for OpenptyResultimpl UnwindSafe for OpenptyResultBlanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T