vmcore::synic

Trait MessagePort

Source
pub trait MessagePort: Send + Sync {
    // Required method
    fn poll_handle_message(
        &self,
        cx: &mut Context<'_>,
        msg: &[u8],
        trusted: bool,
    ) -> Poll<()>;
}

Required Methods§

Source

fn poll_handle_message( &self, cx: &mut Context<'_>, msg: &[u8], trusted: bool, ) -> Poll<()>

Handles a message received on the message port.

A message is trusted if it was was received from the guest without using host-visible mechanisms on a hardware-isolated VM. The trusted parameter is always false if not running in the paravisor of a hardware-isolated VM.

Implementors§