pub trait EventLoopProvider {
// Required method
fn create_event_loop<'nvml>(
&'nvml self,
devices: Vec<&'nvml Device<'nvml>>,
) -> Result<EventLoop<'nvml>, NvmlErrorWithSource>;
}Expand description
Adds a method to obtain an EventLoop to the Nvml struct.
use it at your leisure.
Required Methods§
fn create_event_loop<'nvml>( &'nvml self, devices: Vec<&'nvml Device<'nvml>>, ) -> Result<EventLoop<'nvml>, NvmlErrorWithSource>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".