Trait bitbar::MainOutput
source · [−]pub trait MainOutput {
fn main_output(self, error_template_image: Option<Image>);
}
Expand description
Members of this trait can be returned from a main function annotated with main
.
Required Methods
fn main_output(self, error_template_image: Option<Image>)
fn main_output(self, error_template_image: Option<Image>)
Displays this value as a menu, using the given template image in case of an error.
Implementations on Foreign Types
sourceimpl<T: MainOutput, E: MainOutput> MainOutput for Result<T, E>
impl<T: MainOutput, E: MainOutput> MainOutput for Result<T, E>
In the Err
case, the menu will be prefixed with a menu item displaying the error_template_image
and the text ?
.