pub trait CurrentSI: FromReadSI {
const PATH: &'static str;
// Provided methods
fn current() -> ProcResult<Self> { ... }
fn current_with_system_info(si: &SystemInfo) -> ProcResult<Self> { ... }
}Expand description
Allows associating a specific file to parse with system information.
Required Associated Constants§
Provided Methods§
Sourcefn current() -> ProcResult<Self>
fn current() -> ProcResult<Self>
Parse the current value using the system file and the current system info.
Sourcefn current_with_system_info(si: &SystemInfo) -> ProcResult<Self>
fn current_with_system_info(si: &SystemInfo) -> ProcResult<Self>
Parse the current value using the system file and the provided system info.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.