Skip to main content

Crate yukti

Crate yukti 

Source
Expand description

Yukti — Device abstraction layer for AGNOS

Provides a unified API for detecting, monitoring, and managing hardware devices: USB storage, optical drives, block devices, and udev hotplug events.

§Modules

  • device — Core device types, traits, and capabilities
  • event — Device events (attach, detach, media change)
  • storage — USB/block device mount, eject, filesystem detection
  • optical — Disc type detection, tray control, TOC reading
  • udev — udev monitor, device enumeration, hotplug
  • linux — Linux device manager (ties everything together)
  • error — Error types

Re-exports§

pub use device::Device;
pub use device::DeviceCapabilities;
pub use device::DeviceCapability;
pub use device::DeviceClass;
pub use device::DeviceHealth;
pub use device::DeviceId;
pub use device::DeviceInfo;
pub use device::DevicePermissions;
pub use device::DeviceState;
pub use error::YuktiError;
pub use event::DeviceEvent;
pub use event::DeviceEventKind;
pub use event::EventListener;
pub use linux::LinuxDeviceManager;

Modules§

device
Core device types, traits, and capabilities.
error
Error types for yukti.
event
Device events — attach, detach, media change, mount/unmount.
linux
Linux device manager — ties together udev, storage, and optical modules.
optical
Optical drive operations — disc type detection, tray control, TOC reading.
storage
USB/block device storage operations — mount, unmount, eject, filesystem detection.
udev
udev integration — device enumeration and hotplug monitoring.