pub fn mem(&self) -> Option<&GuestMemoryMmap> {
        match self {
            DeviceState::Activated(ref mem) => Some(mem),
            DeviceState::Inactive => None,
        }
    }
/// Gets the memory attached to the device if it is activated.
Gets the memory attached to the device if it is activated.
Gets the memory attached to the device if it is activated .
pub fn mem(&self) -> Option<&GuestMemoryMmap> {
        match self {
            DeviceState::Activated(ref mem) => Some(mem),
            DeviceState::Inactive => None,
        }
    }
pub fn mem ( & self ) -> Option < & GuestMemoryMmap > { match self { DeviceState :: Activated ( ref mem ) => Some ( mem ) , DeviceState :: Inactive => None , } }
Gets the memory attached to the device if it is activated.
Gets the memory attached to the device if it is activated .
&self
&self