Skip to main content

PtyBackend

Trait PtyBackend 

Source
pub trait PtyBackend {
    type Master: PtyMaster;
    type Slave: PtySlave;

    // Required method
    fn openpty(size: PtySize) -> Result<(Self::Master, Self::Slave)>;
}
Expand description

Factory trait for opening platform-specific pseudo-terminal pairs.

Required Associated Types§

Source

type Master: PtyMaster

Master-side handle type returned by this backend.

Source

type Slave: PtySlave

Slave-side handle type returned by this backend.

Required Methods§

Source

fn openpty(size: PtySize) -> Result<(Self::Master, Self::Slave)>

Open a new PTY with the requested dimensions.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§