MTLDeviceWasRemovedNotification

Static MTLDeviceWasRemovedNotification 

Source
pub unsafe static MTLDeviceWasRemovedNotification: &'static MTLDeviceNotificationName
Available on crate feature MTLDevice only.
Expand description

This notification is posted if the device is removed while there are still outstanding references to it, due to either a surprise or forced disconnect by the user. Applications must expect that any attempt to use the device after this point will fail.

See also Apple’s documentation