pub async fn offer_channel_unit<T: 'static + VmbusDevice>(
driver: &impl Spawn,
state_units: &StateUnits,
vmbus: &VmbusServerHandle,
channel: T,
) -> Result<SpawnedUnit<ChannelUnit<T>>>
Expand description
Offers a channel, creates a unit for it, and adds it to state_units
.