Struct relm4::RelmApp

source ·
pub struct RelmApp<Model>where
    Model: ModelTrait + AppUpdate + 'static,
    Model::Widgets: WidgetsTrait<Model, ()> + 'static,
    <Model::Widgets as WidgetsTrait<Model, ()>>::Root: IsA<ApplicationWindow> + IsA<Window>,
    Model::Components: Components<Model> + 'static,
{ /* private fields */ }
Expand description

The app that runs the main application. A RelmApp consists of a model that stores the application state and widgets that represent the UI.

A RelmApp might run as a standalone application or may contain multiple components that communicate with each other.

Implementations§

Runs the application, returns once the application is closed.

Unlike gtk::Application::run, this function does not handle command-line arguments. To pass arguments to GTK, use RelmApp::run_with_args.

Runs the application with the provided command-line arguments, returns once the application is closed.

Create a Relm4 application.

Create a new Relm4 application with an existing gtk::Application.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.