Skip to main content

UiSession

Trait UiSession 

Source
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§

Source

fn inline_handle(&self) -> &InlineHandle

Source

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§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§