Trait relm::WidgetTest

source ·
pub trait WidgetTest: Widget {
    type Streams;
    type Widgets;

    // Required methods
    fn get_streams(&self) -> Self::Streams;
    fn get_widgets(&self) -> Self::Widgets;
}
Expand description

Trait implemented by the generator to ease the creation of tests of relm widgets using the view! macro.

Required Associated Types§

source

type Streams

Represents the structure holding all the StreamHandles. Useful for tests.

source

type Widgets

Represents the structure holding all the widgets. Useful for tests.

Required Methods§

source

fn get_streams(&self) -> Self::Streams

Get the structure containing all the StreamHandles. Useful for tests.

source

fn get_widgets(&self) -> Self::Widgets

Get the structure containing all the widgets. Useful for tests.

Implementors§