[][src]Enum portable_pty::PtySystemSelection

pub enum PtySystemSelection {
    Unix,
    ConPty,
    WinPty,
}

PtySystemSelection allows selecting and constructing one of the pty implementations provided by this crate.

Variants

Unix

The Unix style pty interface

ConPty

The Windows 10+ native Console Pty interface

WinPty

rprichard's WinPty interface to cygwin and msys pty. This requires that winpty.dll be resolvable by the embedding application. Instructions on obtaining an appropriate implementation of winpty.dll can be found here: winpty

Methods

impl PtySystemSelection[src]

pub fn get(&self) -> Result<Box<dyn PtySystem>, Error>[src]

Construct an instance of PtySystem described by the enum value. Unix specific enum variants result in an error.

pub fn variants() -> Vec<&'static str>[src]

Returns a list of the variant names. This can be useful for example to specify the list of allowable options in a clap argument specification.

Trait Implementations

impl Copy for PtySystemSelection[src]

impl Clone for PtySystemSelection[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for PtySystemSelection[src]

fn default() -> PtySystemSelection[src]

Returns the default, system native PtySystemSelection

impl Debug for PtySystemSelection[src]

impl FromStr for PtySystemSelection[src]

Parse a string into a PtySystemSelection value. This is useful when parsing arguments or configuration files.

type Err = Error

The associated error which can be returned from parsing.

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]