[][src]Struct terminal_io::TerminalDuplexer

pub struct TerminalDuplexer<Inner: Duplex> { /* fields omitted */ }

A wrapper around a Read + Write which adds minimal terminal support.

Implementations

impl<Inner: Duplex + AsUnsafeReadWriteHandle> TerminalDuplexer<Inner>[src]

pub fn with_handle(inner: Inner) -> Self[src]

Wrap a TerminalDuplex around the given stream, autodetecting terminal properties using its AsUnsafeHandle implementation.

pub fn into_inner(self) -> Inner[src]

Consume self and return the inner stream.

impl<Inner: Duplex + Read + Write> TerminalDuplexer<Inner>[src]

pub fn generic(inner: Inner) -> Self[src]

Wrap a TerminalReader around the given stream, using conservative terminal properties.

Trait Implementations

impl<Inner: Duplex + AsRawReadWriteFd> AsRawReadWriteFd for TerminalDuplexer<Inner>[src]

impl<Inner: Debug + Duplex> Debug for TerminalDuplexer<Inner>[src]

impl<Inner: Duplex> Duplex for TerminalDuplexer<Inner>[src]

impl<Inner: Duplex + HalfDuplex> DuplexTerminal for TerminalDuplexer<Inner>[src]

impl<Inner: Duplex + Read + Write> Read for TerminalDuplexer<Inner>[src]

impl<Inner: Duplex + Read + Write> ReadTerminal for TerminalDuplexer<Inner>[src]

impl<Inner: Duplex> Terminal for TerminalDuplexer<Inner>[src]

impl<Inner: Duplex + Read + Write> Write for TerminalDuplexer<Inner>[src]

impl<Inner: Duplex + Read + Write> WriteTerminal for TerminalDuplexer<Inner>[src]

Auto Trait Implementations

impl<Inner> RefUnwindSafe for TerminalDuplexer<Inner> where
    Inner: RefUnwindSafe
[src]

impl<Inner> Send for TerminalDuplexer<Inner> where
    Inner: Send
[src]

impl<Inner> Sync for TerminalDuplexer<Inner> where
    Inner: Sync
[src]

impl<Inner> Unpin for TerminalDuplexer<Inner> where
    Inner: Unpin
[src]

impl<Inner> UnwindSafe for TerminalDuplexer<Inner> where
    Inner: UnwindSafe
[src]

Blanket Implementations

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

impl<T> AsUnsafeReadWriteHandle for T where
    T: AsRawReadWriteFd
[src]

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

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

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

impl<T> HalfDuplex for T where
    T: Duplex + Read + Write
[src]

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

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.