Trait vmcore::synic::MessagePort

source ·
pub trait MessagePort: Send + Sync {
    // Required method
    fn handle_message(&self, msg: &[u8], trusted: bool) -> bool;
}

Required Methods§

source

fn handle_message(&self, msg: &[u8], trusted: bool) -> bool

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§