pub trait UiSession {
// Required methods
fn inline_handle(&self) -> &InlineHandle;
fn next_event<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Option<InlineEvent>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided methods
fn clone_inline_handle(&self) -> InlineHandle { ... }
fn request_redraw(&self) { ... }
fn shutdown(&self) { ... }
}Expand description
Common contract for interactive inline UI sessions.
Required Methods§
fn inline_handle(&self) -> &InlineHandle
fn next_event<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Option<InlineEvent>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
fn clone_inline_handle(&self) -> InlineHandle
fn request_redraw(&self)
fn shutdown(&self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".