Trait mg::Responder

source ·
pub trait Responder {
    // Required method
    fn respond(&self, answer: DialogResult);
}
Expand description

A Responder is a way to send back the answer of a dialog to the code that showed this dialog.

Required Methods§

source

fn respond(&self, answer: DialogResult)

Send the answer back. It can be to a widget or a channel.

Implementors§