pub struct Path(/* private fields */);Expand description
A borrowed path type.
The implementation is very similar to the standard library’s std::path::Path.
However, this implementation is more lightweight and allows for std-less usage.
Implementations§
Source§impl Path
impl Path
pub const ROOT: &'static Path
pub const EMPTY: &'static Path
pub const SYSTEM_ACCOUNTS: &'static Path
pub const SYSTEM_ACCOUNT_USERS: &'static Path
pub const SYSTEM_ACCOUNT_GROUPS: &'static Path
pub const SYSTEM_EXECUTABLES: &'static Path
pub const SYSTEM_LIBRARIES: &'static Path
pub const SYSTEM_SERVICES: &'static Path
pub const NETWORK_DEVICES: &'static Path
pub const BLUETOOTH_DEVICES: &'static Path
pub const AUDIO_DEVICES: &'static Path
pub const COMPUTE_DEVICES: &'static Path
pub const GRAPHICS_DEVICES: &'static Path
pub const INPUT_DEVICES: &'static Path
pub const RANDOM_DEVICES: &'static Path
pub const STANDARD_IO_DEVICES: &'static Path
pub const STORAGE_DEVICES: &'static Path
pub const TIME_DEVICES: &'static Path
Sourcepub const UART_DEVICES: &'static Path
pub const UART_DEVICES: &'static Path
Peripheral device nodes: /devices/<class>/<name>, e.g. /devices/uart/uart0.
pub const I2C_DEVICES: &'static Path
pub const SPI_DEVICES: &'static Path
pub const ADC_DEVICES: &'static Path
pub const GPIO_DEVICES: &'static Path
pub const PWM_DEVICES: &'static Path
pub const HUMAN_INTERFACE_DEVICES: &'static Path
Sourcepub const REAL_TIME_CLOCK: &'static Path
pub const REAL_TIME_CLOCK: &'static Path
Real-time clock node holding wall-clock time (UTC) across resets.
Sourcepub const CONFIGURATION: &'static Path
pub const CONFIGURATION: &'static Path
System and application configuration.
pub const SYSTEM_CONFIGURATION: &'static Path
Sourcepub const PACKAGE_CONFIGURATION: &'static Path
pub const PACKAGE_CONFIGURATION: &'static Path
Package installation policy, such as the trusted repository key.
pub const APPLICATION_CONFIGURATION: &'static Path
pub const SHARED_CONFIGURATION: &'static Path
Sourcepub const APPLICATIONS: &'static Path
pub const APPLICATIONS: &'static Path
Installed application code.
pub const APPLICATION_EXECUTABLES: &'static Path
pub const APPLICATION_LIBRARIES: &'static Path
Sourcepub const APPLICATION_BUNDLES: &'static Path
pub const APPLICATION_BUNDLES: &'static Path
Installed self-contained application bundles: /applications/bundles/<package-id>/,
each the extracted .xpk archive (.xila/, executables/, resources, shortcut.json).
pub const SYSTEM_DATA: &'static Path
pub const SYSTEM_CRASHES: &'static Path
pub const SYSTEM_LOGS: &'static Path
pub const APPLICATION_DATA: &'static Path
pub const SHARED_DATA: &'static Path
pub const TEMPORARY_CACHE: &'static Path
pub const TEMPORARY_SESSIONS: &'static Path
Sourcepub const fn from_str(path: &str) -> &Path
pub const fn from_str(path: &str) -> &Path
§Safety
The caller must ensure that the string is a valid path string.
Sourcepub fn new<S: AsRef<str> + ?Sized>(path: &S) -> &Path
pub fn new<S: AsRef<str> + ?Sized>(path: &S) -> &Path
§Safety
The caller must ensure that the string is a valid path string.