pub struct GuestConsole { /* private fields */ }
Implementations§
Source§impl GuestConsole
impl GuestConsole
pub fn new(input: Socket, output: Socket) -> Result<Self>
pub fn get_unblocked_stdio(stdio: Stdio) -> Unblock<UnbufferedStdio>
pub async fn run<R: AsyncRead + Unpin, W: AsyncWrite + Unpin>( self, host_tx: R, host_rx: W, ) -> Result<()>
pub async fn run_with_stdio(self) -> Result<()>
Auto Trait Implementations§
impl Freeze for GuestConsole
impl !RefUnwindSafe for GuestConsole
impl Send for GuestConsole
impl Sync for GuestConsole
impl Unpin for GuestConsole
impl !UnwindSafe for GuestConsole
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