pub struct VirtioSerialPort { /* private fields */ }
Implementations§
Source§impl VirtioSerialPort
impl VirtioSerialPort
pub fn new(mem: &GuestMemory) -> Self
pub fn read_from_port(&self) -> Option<VirtioQueueCallbackWork>
pub fn complete_read_from_port(&self, work: VirtioQueueCallbackWork)
pub fn write_to_port(&self, data: &[u8]) -> usize
pub fn write_all_to_port(&self, data: &[u8]) -> bool
pub async fn process_virtio_read(&self, work: VirtioQueueCallbackWork) -> bool
pub async fn process_virtio_write(&self, work: VirtioQueueCallbackWork) -> bool
pub fn open(&self)
pub fn close(&self)
pub fn stop(&self)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for VirtioSerialPort
impl !RefUnwindSafe for VirtioSerialPort
impl Send for VirtioSerialPort
impl Sync for VirtioSerialPort
impl Unpin for VirtioSerialPort
impl !UnwindSafe for VirtioSerialPort
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