Enum nvml_wrapper::high_level::event_loop::Event
source · [−]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
Auto Trait Implementations
impl<'nvml> !RefUnwindSafe for Event<'nvml>
impl<'nvml> Send for Event<'nvml>
impl<'nvml> Sync for Event<'nvml>
impl<'nvml> Unpin for Event<'nvml>
impl<'nvml> !UnwindSafe for Event<'nvml>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more