#[non_exhaustive]pub struct Pty {
pub device: TTYPort,
pub host: TTYPort,
pub path: String,
}Expand description
Both ends of a pseudo terminal.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.device: TTYPortThe device side (the master).
host: TTYPortThe host side (the slave), open; drop it when the code under test opens path itself.
path: StringThe path of the host side.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Pty
impl Freeze for Pty
impl Move for Pty
impl RefUnwindSafe for Pty
impl Send for Pty
impl Sync for Pty
impl Unpin for Pty
impl UnsafeUnpin for Pty
impl UnwindSafe for Pty
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