pub trait EventLoopProvider {
    // Required method
    fn create_event_loop<'nvml>(
        &'nvml self,
        devices: Vec<&'nvml Device<'nvml>>
    ) -> Result<EventLoop<'_>, NvmlErrorWithSource>;
}
Expand description

Adds a method to obtain an EventLoop to the Nvml struct.

use it at your leisure.

Required Methods§

source

fn create_event_loop<'nvml>( &'nvml self, devices: Vec<&'nvml Device<'nvml>> ) -> Result<EventLoop<'_>, NvmlErrorWithSource>

Implementors§