Enum apple_bundle::info_plist::user_interface::GpuEjectPolicy [−][src]
pub enum GpuEjectPolicy {
Relaunch,
Wait,
Kill,
Ignore,
}Expand description
GPU Eject Policy
Variants
Set this value to allow macOS to quit and relaunch your app with another GPU. Your app can implement the application(:willEncodeRestorableState:) method to save any state before it quits, and it can implement the application(:didDecodeRestorableState:) method to restore any saved state after it relaunches.
Set this value to manually respond to the safe disconnect request. Your app must register and respond to the removalRequested notification posted by Metal. macOS waits for your app to remove all references to the external GPU before notifying the user that it’s safe to disconnect the GPU.
Set this value to allow macOS to force your app to quit.
Tells the system to ignore the disconnect message. Don’t use this key in new macOS apps.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for GpuEjectPolicyimpl Send for GpuEjectPolicyimpl Sync for GpuEjectPolicyimpl Unpin for GpuEjectPolicyimpl UnwindSafe for GpuEjectPolicyBlanket Implementations
Mutably borrows from an owned value. Read more