Skip to main content

OSSystemExtensionsWorkspaceObserver

Trait OSSystemExtensionsWorkspaceObserver 

Source
pub unsafe trait OSSystemExtensionsWorkspaceObserver: NSObjectProtocol {
    // Provided methods
    unsafe fn systemExtensionWillBecomeEnabled(
        &self,
        system_extension_info: &OSSystemExtensionInfo,
    )
       where Self: Sized + Message { ... }
    unsafe fn systemExtensionWillBecomeDisabled(
        &self,
        system_extension_info: &OSSystemExtensionInfo,
    )
       where Self: Sized + Message { ... }
    unsafe fn systemExtensionWillBecomeInactive(
        &self,
        system_extension_info: &OSSystemExtensionInfo,
    )
       where Self: Sized + Message { ... }
}
Expand description

Provided Methods§

Source

unsafe fn systemExtensionWillBecomeEnabled( &self, system_extension_info: &OSSystemExtensionInfo, )
where Self: Sized + Message,

This delegate method will be called when a system extension has been validated and allowed by the user to run.

Source

unsafe fn systemExtensionWillBecomeDisabled( &self, system_extension_info: &OSSystemExtensionInfo, )
where Self: Sized + Message,

This delegate method will be called when the user disables an already enabled system extension, or when the system extension is first installed and is in the disabled state.

Source

unsafe fn systemExtensionWillBecomeInactive( &self, system_extension_info: &OSSystemExtensionInfo, )
where Self: Sized + Message,

This delegate method will be called when a system extension is deactivated and is about to get uninstalled. The extension may still be running until the system is rebooted.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn OSSystemExtensionsWorkspaceObserver

Source§

impl ProtocolType for dyn OSSystemExtensionsWorkspaceObserver

Source§

const NAME: &'static str = "OSSystemExtensionsWorkspaceObserver"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T> OSSystemExtensionsWorkspaceObserver for ProtocolObject<T>

Implementors§