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§
Required Methods§
sourcefn get_streams(&self) -> Self::Streams
fn get_streams(&self) -> Self::Streams
Get the structure containing all the StreamHandle
s. Useful for tests.
sourcefn get_widgets(&self) -> Self::Widgets
fn get_widgets(&self) -> Self::Widgets
Get the structure containing all the widgets. Useful for tests.