Trait ZenityApplication

Source
pub trait ZenityApplication:
    Clone
    + Default
    + ToArgVector {
    type Return: Clone;

    // Required method
    fn parse(&self, stdout: &str) -> Result<Self::Return, Error>;
}
Expand description

Allows a struct or enum to be provided as a Zenity application.

Required Associated Types§

Source

type Return: Clone

The type that Zenity returns. Usually it should be a string, but in some cases you might want to parse the string into another type.

Required Methods§

Source

fn parse(&self, stdout: &str) -> Result<Self::Return, Error>

Parse the raw output from Zenity into another type

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§