pub trait PtySystem {
type Child: Child;
type Master: Master;
type MasterRead: AsyncRead;
type MasterWrite: AsyncWrite;
// Required method
fn spawn(
command: Command,
options: PtySystemOptions,
) -> Result<PtySystemInstance<Self>, PtySystemError>;
}Required Associated Types§
type Child: Child
type Master: Master
type MasterRead: AsyncRead
type MasterWrite: AsyncWrite
Required Methods§
fn spawn( command: Command, options: PtySystemOptions, ) -> Result<PtySystemInstance<Self>, PtySystemError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.