pub struct PosixPlatform;Expand description
POSIX platform — Linux and macOS.
Trait Implementations§
Source§impl Platform for PosixPlatform
impl Platform for PosixPlatform
Source§fn get_time_microseconds(&self) -> u64
fn get_time_microseconds(&self) -> u64
Current time in microseconds. Read more
Source§fn capture_keyboard(&mut self)
fn capture_keyboard(&mut self)
Put the terminal into raw mode (no echo, no line buffering). Read more
Source§fn reset_keyboard(&mut self)
fn reset_keyboard(&mut self)
Restore the terminal to its original (canonical) mode. Read more
Source§fn mini_sleep(&self)
fn mini_sleep(&self)
Sleep briefly to avoid burning CPU while the guest is in WFI. Read more
Source§fn read_kb_byte(&mut self) -> i32
fn read_kb_byte(&mut self) -> i32
Read one byte from stdin. Read more
Auto Trait Implementations§
impl Freeze for PosixPlatform
impl RefUnwindSafe for PosixPlatform
impl Send for PosixPlatform
impl Sync for PosixPlatform
impl Unpin for PosixPlatform
impl UnsafeUnpin for PosixPlatform
impl UnwindSafe for PosixPlatform
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