pub struct Sysfs {
devices: DeviceMap,
txn_dir: PathBuf,
root: PathBuf,
}Fields§
§devices: DeviceMap§txn_dir: PathBuf§root: PathBuf/sys (a test tree in tests).
Implementations§
Trait Implementations§
Source§impl InventoryBackend for Sysfs
impl InventoryBackend for Sysfs
fn devices(&self) -> Result<Vec<DeviceInfo>, Outcome>
fn resources(&self) -> Result<Resources, Outcome>
fn bound_driver(&self, device: &UnitId) -> Result<Option<DriverRef>, Outcome>
fn bind(&self, device: &UnitId, driver: &DriverRef, op: &OpId) -> Outcome
fn unbind(&self, device: &UnitId, op: &OpId) -> Outcome
Auto Trait Implementations§
impl Freeze for Sysfs
impl RefUnwindSafe for Sysfs
impl Send for Sysfs
impl Sync for Sysfs
impl Unpin for Sysfs
impl UnsafeUnpin for Sysfs
impl UnwindSafe for Sysfs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more