pub trait DeviceExt: IsA<Device> + Sealed + 'static {
Show 40 methods
// Provided methods
fn action(&self) -> Option<GString> { ... }
fn device_file(&self) -> Option<GString> { ... }
fn device_file_symlinks(&self) -> Vec<GString> { ... }
fn device_number(&self) -> DeviceNumber { ... }
fn device_type(&self) -> DeviceType { ... }
fn devtype(&self) -> Option<GString> { ... }
fn driver(&self) -> Option<GString> { ... }
fn is_initialized(&self) -> bool { ... }
fn name(&self) -> Option<GString> { ... }
fn number(&self) -> Option<GString> { ... }
fn parent(&self) -> Option<Device> { ... }
fn parent_with_subsystem(
&self,
subsystem: &str,
devtype: Option<&str>
) -> Option<Device> { ... }
fn property(&self, key: &str) -> Option<GString> { ... }
fn property_as_boolean(&self, key: &str) -> bool { ... }
fn property_as_double(&self, key: &str) -> f64 { ... }
fn property_as_int(&self, key: &str) -> i32 { ... }
fn property_as_strv(&self, key: &str) -> Vec<GString> { ... }
fn property_as_uint64(&self, key: &str) -> u64 { ... }
fn property_keys(&self) -> Vec<GString> { ... }
fn seqnum(&self) -> u64 { ... }
fn subsystem(&self) -> Option<GString> { ... }
fn sysfs_attr(&self, name: &str) -> Option<GString> { ... }
fn sysfs_attr_as_boolean(&self, name: &str) -> bool { ... }
fn sysfs_attr_as_boolean_uncached(&self, name: &str) -> bool { ... }
fn sysfs_attr_as_double(&self, name: &str) -> f64 { ... }
fn sysfs_attr_as_double_uncached(&self, name: &str) -> f64 { ... }
fn sysfs_attr_as_int(&self, name: &str) -> i32 { ... }
fn sysfs_attr_as_int_uncached(&self, name: &str) -> i32 { ... }
fn sysfs_attr_as_strv(&self, name: &str) -> Vec<GString> { ... }
fn sysfs_attr_as_strv_uncached(&self, name: &str) -> Vec<GString> { ... }
fn sysfs_attr_as_uint64(&self, name: &str) -> u64 { ... }
fn sysfs_attr_as_uint64_uncached(&self, name: &str) -> u64 { ... }
fn sysfs_attr_keys(&self) -> Vec<GString> { ... }
fn sysfs_attr_uncached(&self, name: &str) -> Option<GString> { ... }
fn sysfs_path(&self) -> Option<GString> { ... }
fn tags(&self) -> Vec<GString> { ... }
fn usec_since_initialized(&self) -> u64 { ... }
fn has_property(&self, key: &str) -> bool { ... }
fn has_sysfs_attr(&self, key: &str) -> bool { ... }
fn has_sysfs_attr_uncached(&self, key: &str) -> bool { ... }
}
Provided Methods§
fn action(&self) -> Option<GString>
sourcefn device_file(&self) -> Option<GString>
fn device_file(&self) -> Option<GString>
Examples found in repository?
More examples
fn device_file_symlinks(&self) -> Vec<GString>
fn device_number(&self) -> DeviceNumber
fn device_type(&self) -> DeviceType
fn driver(&self) -> Option<GString>
fn is_initialized(&self) -> bool
fn name(&self) -> Option<GString>
fn number(&self) -> Option<GString>
fn parent(&self) -> Option<Device>
fn parent_with_subsystem( &self, subsystem: &str, devtype: Option<&str> ) -> Option<Device>
fn property(&self, key: &str) -> Option<GString>
fn property_as_boolean(&self, key: &str) -> bool
fn property_as_double(&self, key: &str) -> f64
fn property_as_int(&self, key: &str) -> i32
fn property_as_strv(&self, key: &str) -> Vec<GString>
fn property_as_uint64(&self, key: &str) -> u64
fn property_keys(&self) -> Vec<GString>
fn sysfs_attr(&self, name: &str) -> Option<GString>
fn sysfs_attr_as_boolean(&self, name: &str) -> bool
fn sysfs_attr_as_boolean_uncached(&self, name: &str) -> bool
fn sysfs_attr_as_double(&self, name: &str) -> f64
fn sysfs_attr_as_double_uncached(&self, name: &str) -> f64
fn sysfs_attr_as_int(&self, name: &str) -> i32
fn sysfs_attr_as_int_uncached(&self, name: &str) -> i32
fn sysfs_attr_as_strv(&self, name: &str) -> Vec<GString>
fn sysfs_attr_as_strv_uncached(&self, name: &str) -> Vec<GString>
fn sysfs_attr_as_uint64(&self, name: &str) -> u64
fn sysfs_attr_as_uint64_uncached(&self, name: &str) -> u64
fn sysfs_attr_keys(&self) -> Vec<GString>
fn sysfs_attr_uncached(&self, name: &str) -> Option<GString>
sourcefn sysfs_path(&self) -> Option<GString>
fn sysfs_path(&self) -> Option<GString>
Examples found in repository?
More examples
fn usec_since_initialized(&self) -> u64
fn has_property(&self, key: &str) -> bool
fn has_sysfs_attr(&self, key: &str) -> bool
fn has_sysfs_attr_uncached(&self, key: &str) -> bool
Object Safety§
This trait is not object safe.