Returns the access platform only if the feature has been acked.
(&self)
| 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 | |
| 375 | impl Pausable for VirtioCommon { |
nothing calls this directly
no test coverage detected