pub fn is_activated(&self) -> bool {
        match self {
            DeviceState::Inactive => false,
            DeviceState::Activated(_) => true,
        }
    }
/// Checks if the device is activated.
Checks if the device is activated.
Checks if the device is activated .
pub fn is_activated(&self) -> bool {
        match self {
            DeviceState::Inactive => false,
            DeviceState::Activated(_) => true,
        }
    }
pub fn is_activated ( & self ) -> bool { match self { DeviceState :: Inactive => false , DeviceState :: Activated ( _ ) => true , } }
Checks if the device is activated.
Checks if the device is activated .
&self
&self