pub struct Terminal { /* private fields */ }Expand description
WebSocket terminal connection to a container.
Implementations§
Source§impl Terminal
impl Terminal
Sourcepub async fn write_str(&mut self, data: &str) -> Result<(), Error>
pub async fn write_str(&mut self, data: &str) -> Result<(), Error>
Send a string to the terminal.
Sourcepub async fn read(&mut self) -> Result<Option<Vec<u8>>, Error>
pub async fn read(&mut self) -> Result<Option<Vec<u8>>, Error>
Read data from the terminal.
§Returns
Bytes received from the terminal, or None if connection closed.
Auto Trait Implementations§
impl !RefUnwindSafe for Terminal
impl !UnwindSafe for Terminal
impl Freeze for Terminal
impl Send for Terminal
impl Sync for Terminal
impl Unpin for Terminal
impl UnsafeUnpin for Terminal
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