cushy

Trait Run

source
pub trait Run: Sized {
    // Required method
    fn run(self) -> Result;
}
Expand description

A type that can be run as an application.

Required Methods§

source

fn run(self) -> Result

Runs the provided type, returning Ok(()) upon successful execution and program exit. Note that this function may not ever return on some platforms.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Run for PendingApp

source§

impl<Behavior> Run for Window<Behavior>
where Behavior: WindowBehavior,

source§

impl<T> Run for T
where T: MakeWidget,