#[repr(C)]pub struct es_event_btm_launch_item_remove_t {
pub instigator: *mut es_process_t,
pub app: *mut es_process_t,
pub item: ShouldNotBeNull<es_btm_launch_item_t>,
}macos_13_0_0 only.Expand description
Notification for launch item being removed from background task management. This includes launch agents and daemons as well as login items added by the user, via MDM or by an app.
This event type does not support caching (notify-only).
Fields§
§instigator: *mut es_process_tOptional. Process that instigated the BTM operation (XPC caller that asked for the item to be added).
app: *mut es_process_tOptional. App process that registered the item.
item: ShouldNotBeNull<es_btm_launch_item_t>BTM launch item.
Implementations§
Source§impl es_event_btm_launch_item_remove_t
Accessors for ShouldNotBeNull fields
impl es_event_btm_launch_item_remove_t
Accessors for ShouldNotBeNull fields
Sourcepub unsafe fn item(&self) -> &es_btm_launch_item_t
pub unsafe fn item(&self) -> &es_btm_launch_item_t
Gives a references to the field while checking for null.
§Safety
See ShouldNotBeNull safety requirements.
Source§impl es_event_btm_launch_item_remove_t
Accessors for *mut and *const fields
impl es_event_btm_launch_item_remove_t
Accessors for *mut and *const fields
Sourcepub unsafe fn instigator(&self) -> Option<&es_process_t>
pub unsafe fn instigator(&self) -> Option<&es_process_t>
Helper to avoid the is_null() + deref every time.
§Safety
The pointer must be valid (aligned & initialized) for a value of the expected type.
Sourcepub unsafe fn app(&self) -> Option<&es_process_t>
pub unsafe fn app(&self) -> Option<&es_process_t>
Helper to avoid the is_null() + deref every time.
§Safety
The pointer must be valid (aligned & initialized) for a value of the expected type.