Trait NSProcessInfo

Source
pub trait NSProcessInfo: Sized {
    // Required methods
    unsafe fn systemUptime(self) -> NSTimeInterval;
    unsafe fn processName(self) -> id;
    unsafe fn operatingSystemVersion(self) -> NSOperatingSystemVersion;
    unsafe fn isOperatingSystemAtLeastVersion(
        self,
        version: NSOperatingSystemVersion,
    ) -> bool;

    // Provided method
    unsafe fn processInfo(_: Self) -> id { ... }
}
๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead

Required Methodsยง

Source

unsafe fn systemUptime(self) -> NSTimeInterval

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn processName(self) -> id

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn operatingSystemVersion(self) -> NSOperatingSystemVersion

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead
Source

unsafe fn isOperatingSystemAtLeastVersion( self, version: NSOperatingSystemVersion, ) -> bool

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead

Provided Methodsยง

Source

unsafe fn processInfo(_: Self) -> id

๐Ÿ‘ŽDeprecated: use the objc2-foundation crate instead

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.

Implementorsยง