pub struct ChildConsole { /* private fields */ }Implementations§
Source§impl ChildConsole
impl ChildConsole
pub fn spawn_corrupt<S: AsRef<OsStr>>( argv: &[S], rd: TransferState, wr: TransferState, ) -> Result<Self>
pub fn spawn<S: AsRef<OsStr>>(argv: &[S]) -> Result<Self>
pub fn wait(&self) -> Result<ExitStatus>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ChildConsole
impl !RefUnwindSafe for ChildConsole
impl Send for ChildConsole
impl !Sync for ChildConsole
impl Unpin for ChildConsole
impl UnwindSafe for ChildConsole
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
Source§impl<T> ConsoleExt for Twhere
T: ConsoleDevice + ?Sized,
impl<T> ConsoleExt for Twhere
T: ConsoleDevice + ?Sized,
Source§fn read(&self, buf: &mut [u8]) -> Result<usize, Error>
fn read(&self, buf: &mut [u8]) -> Result<usize, Error>
Reads UART receive data into
buf, returning the number of bytes read.
This function is blocking.Source§fn read_timeout(
&self,
buf: &mut [u8],
timeout: Duration,
) -> Result<usize, Error>
fn read_timeout( &self, buf: &mut [u8], timeout: Duration, ) -> Result<usize, Error>
Reads UART receive data into
buf, returning the number of bytes read.
The timeout may be used to specify a duration to wait for data.
If timeout expires without any data arriving Ok(0) will be returned, never Err(_).