Struct libudev::Context
[−]
[src]
pub struct Context { /* fields omitted */ }
A libudev context.
Methods
impl Context
[src]
fn new() -> Result<Self>
Creates a new context.
fn device_from_syspath(&self, syspath: &Path) -> Result<Device>
Creates a device for a given syspath.
The syspath
parameter should be a path to the device file within the sysfs
file system,
e.g., /sys/devices/virtual/tty/tty0
.