[−][src]Enum portable_pty::PtySystemSelection
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(&self) -> 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.
Auto Trait Implementations
impl Send for PtySystemSelection
impl Sync for PtySystemSelection
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,