pub trait EventLoop {
type Close: Send + Sync + Debug + Display;
type Err: Send + Sync + Error;
// Required methods
fn event_loop_join_handle(
&self,
) -> &Arc<RwLock<JoinHandle<Result<Self::Close, Self::Err>>>>;
fn is_closed(&self) -> bool;
fn close<'life0, 'async_trait>(
&'life0 self,
reason: Self::Close,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Err>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Required Associated Types§
Required Methods§
fn event_loop_join_handle( &self, ) -> &Arc<RwLock<JoinHandle<Result<Self::Close, Self::Err>>>>
fn is_closed(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".