Skip to main content

PlatformInfoAPI

Trait 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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§