MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / access_platform

Method access_platform

virtio-devices/src/device.rs:366–372  ·  view source on GitHub ↗

Returns the access platform only if the feature has been acked.

(&self)

Source from the content-addressed store, hash-verified

364
365 /// Returns the access platform only if the feature has been acked.
366 pub fn access_platform(&self) -> Option<Arc<dyn AccessPlatform>> {
367 if self.feature_acked(VIRTIO_F_ACCESS_PLATFORM as u64) {
368 self.access_platform.clone()
369 } else {
370 None
371 }
372 }
373}
374
375impl Pausable for VirtioCommon {

Callers

nothing calls this directly

Calls 2

feature_ackedMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected