Skip to main content

system_properties

Function system_properties 

Source
pub fn system_properties() -> &'static SystemProperties
Expand description

Get the system properties.

Calling this without a prior init() does not panic by itself: the default directory (/dev/__properties__) is latched on first use, and a later init()/try_init() naming a properties directory will then fail with AlreadyInitialized. The panic happens only when the properties directory (configured or default) cannot be opened.

Prefer try_system_properties in code that must not panic.