pub struct Tty {
pub container: String,
pub output: BoxStream<'static, Result<Vec<u8>, Error>>,
pub input: Pin<Box<dyn AsyncWrite + Send>>,
}Expand description
A container’s terminal, attached once it was created and before it started, so none of its output is missed.
Fields§
§container: StringThe container’s ID.
output: BoxStream<'static, Result<Vec<u8>, Error>>What the terminal shows, as it shows it; it ends when the container’s process exits.
input: Pin<Box<dyn AsyncWrite + Send>>What is typed into it.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Tty
impl !Sync for Tty
impl !UnwindSafe for Tty
impl Freeze for Tty
impl Send for Tty
impl Unpin for Tty
impl UnsafeUnpin for Tty
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more