pub enum Event<'nvml> {
    ClockChange(Device<'nvml>),
    CriticalXidError(Device<'nvml>, XidError),
    DoubleBitEccError(Device<'nvml>),
    PowerStateChange(Device<'nvml>),
    SingleBitEccError(Device<'nvml>),
    Unknown,
}
Expand description

Represents the event types that an EventLoop can gather for you.

These are analagous to the constants in bitmasks::event.

Checking to see if the Device within an Event is the same physical device as another Device that you have on hand can be accomplished via Device.uuid().

Variants

ClockChange(Device<'nvml>)

CriticalXidError(Device<'nvml>, XidError)

DoubleBitEccError(Device<'nvml>)

PowerStateChange(Device<'nvml>)

SingleBitEccError(Device<'nvml>)

Unknown

Returned if none of the other Events are contained in the EventData the EventLoop processes.

Trait Implementations

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.