Module simple

Source
Expand description

Traits for implementing simple vmbus devices with no subchannels.

This is a simpler abstraction than VmbusDevice, and it is appropriate under these conditions:

  • The VMBus device has a single channel.

  • The VMBus device needs to spawn an asynchronous task to handle a channel when the channel is opened.

Structs§

SimpleDeviceHandle
A handle to an offered simple vmbus device.
SimpleDeviceWrapper
A wrapper around SimpleVmbusDevice that implements VmbusDevice.

Traits§

SaveRestoreSimpleVmbusDevice
Trait implemented by simple vmbus devices that support save/restore.
SimpleVmbusDevice
A trait implemented by a simple vmbus device with no subchannels.

Functions§

offer_simple_device
Offers a new channel, returning a typed handle to get back the original channel when it’s revoked.