/// Returns the `EventType` corresponding to this event.
Returns the `EventType` corresponding to this event.
Returns the ` EventType ` corresponding to this event .
pub fn event_type(&self) -> EventType {
        let value = match self.device.property_value("ACTION") {
            Some(s) => s.to_str(),
            None => None
        };
        match value {
            Some("add") => EventType::Add,
            Some("change") => EventType::Change,
            Some("remove") => EventType::Remove,
            Some("bind") => EventType::Bind,
            Some("unbind") => EventType::Unbind,
            _ => EventType::Unknown
        }
    }
pub fn event_type ( & self ) -> EventType { let value = match self . device . property_value ( " " ) { Some ( s ) => s . to_str ( ) , None => None } ; match value { Some ( " " ) => EventType :: Add , Some ( " " ) => EventType :: Change , Some ( " " ) => EventType :: Remove , Some ( " " ) => EventType :: Bind , Some ( " " ) => EventType :: Unbind , _ => EventType :: Unknown } }
Returns the `EventType` corresponding to this event.
Returns the ` EventType ` corresponding to this event .
&self