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 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
Source§

impl<T> ImplementedBy<T> for dyn OSSystemExtensionsWorkspaceObserver

Implementations on Foreign Types§

Source§

impl<T> OSSystemExtensionsWorkspaceObserver for ProtocolObject<T>

Implementors§