[][src]Enum creator_tools::types::GPUEjectPolicy

pub enum GPUEjectPolicy {
    Relaunch,
    Wait,
    Kill,
    Ignore,
}

GPU Eject Policy.

Variants

Relaunch

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.

Wait

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.

Kill

Set this value to allow macOS to force your app to quit.

Ignore

Tells the system to ignore the disconnect message. Don’t use this key in new macOS apps.

Trait Implementations

impl Clone for GPUEjectPolicy[src]

impl Debug for GPUEjectPolicy[src]

impl<'de> Deserialize<'de> for GPUEjectPolicy[src]

impl PartialEq<GPUEjectPolicy> for GPUEjectPolicy[src]

impl Serialize for GPUEjectPolicy[src]

impl StructuralPartialEq for GPUEjectPolicy[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.