pub struct SynicPorts { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl SynicMonitorAccess for SynicPorts
impl SynicMonitorAccess for SynicPorts
Source§impl SynicPortAccess for SynicPorts
impl SynicPortAccess for SynicPorts
Source§fn add_message_port(
&self,
connection_id: u32,
minimum_vtl: Vtl,
port: Arc<dyn MessagePort>,
) -> Result<Box<dyn Sync + Send>, Error>
fn add_message_port( &self, connection_id: u32, minimum_vtl: Vtl, port: Arc<dyn MessagePort>, ) -> Result<Box<dyn Sync + Send>, Error>
Adds a host message port, which gets notified when the guest calls
HvPostMessage
.Source§fn add_event_port(
&self,
connection_id: u32,
minimum_vtl: Vtl,
port: Arc<dyn EventPort>,
) -> Result<Box<dyn Sync + Send>, Error>
fn add_event_port( &self, connection_id: u32, minimum_vtl: Vtl, port: Arc<dyn EventPort>, ) -> Result<Box<dyn Sync + Send>, Error>
Adds a host event port, which gets notified when the guest calls
HvSignalEvent
.Source§fn new_guest_message_port(
&self,
vtl: Vtl,
vp: u32,
sint: u8,
) -> Result<Box<dyn GuestMessagePort>, HypervisorError>
fn new_guest_message_port( &self, vtl: Vtl, vp: u32, sint: u8, ) -> Result<Box<dyn GuestMessagePort>, HypervisorError>
Creates a
GuestMessagePort
for posting messages to the guest.Source§fn new_guest_event_port(
&self,
) -> Result<Box<dyn GuestEventPort>, HypervisorError>
fn new_guest_event_port( &self, ) -> Result<Box<dyn GuestEventPort>, HypervisorError>
Creates a
GuestEventPort
for signaling VMBus channels in the guest.Source§fn prefer_os_events(&self) -> bool
fn prefer_os_events(&self) -> bool
Returns whether callers should pass an OS event when creating event
ports, as opposed to passing a function to call. Read more
Source§fn monitor_support(&self) -> Option<&dyn SynicMonitorAccess>
fn monitor_support(&self) -> Option<&dyn SynicMonitorAccess>
Returns an object for manipulating the monitor page, or None if monitor pages aren’t
supported.
Auto Trait Implementations§
impl Freeze for SynicPorts
impl !RefUnwindSafe for SynicPorts
impl Send for SynicPorts
impl Sync for SynicPorts
impl Unpin for SynicPorts
impl !UnwindSafe for SynicPorts
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