Trait platform_info::PlatformInfoAPI

source ·
pub trait PlatformInfoAPI: UNameAPI {
    // Required method
    fn new() -> Result<Self, PlatformInfoError>
       where Self: Sized;
}
Expand description

Defines the full API for PlatformInfo.

Required Methods§

source

fn new() -> Result<Self, PlatformInfoError>
where Self: Sized,

Creates a new instance of PlatformInfo.
On some platforms, it is possible for this function to fail.

Implementors§