Widget

Trait Widget 

Source
pub trait Widget {
    type Handle: WidgetHandle;

    // Required method
    fn text(self) -> Self::Handle;
}
Expand description

A persistent message that is only usable for humans, for example a spinner.

Required Associated Types§

Source

type Handle: WidgetHandle

Allows for live interaction with the widget, and its drop is called when the widget should be cleared.

Required Methods§

Source

fn text(self) -> Self::Handle

Display the widget on the standard output, and return a handle for further interaction.

Implementors§