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§
sourcefn new() -> Result<Self, PlatformInfoError>where
Self: Sized,
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.