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ยง
unsafe fn systemUptime(self) -> NSTimeInterval
๐Deprecated: use the objc2-foundation crate instead
unsafe fn processName(self) -> id
๐Deprecated: use the objc2-foundation crate instead
unsafe fn operatingSystemVersion(self) -> NSOperatingSystemVersion
๐Deprecated: use the objc2-foundation crate instead
unsafe fn isOperatingSystemAtLeastVersion( self, version: NSOperatingSystemVersion, ) -> bool
๐Deprecated: use the objc2-foundation crate instead
Provided Methodsยง
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.