Enum dui::callback::CallbackReturn
[−]
[src]
pub enum CallbackReturn { Default, Close, Ignore, Continue, Char(char), }
Return this from a callback to tell the framework a non-default action to be performed.
Not all callbacks accepts Close
, Ignore
or Continue
, check their respective docs.
Variants
Default
The default CallbackReturn
, does nothing when returned.
Close
If this is returned from a callback, then when the callback returns the dialog containing the element on which the callback was invoked will be closed.
Ignore
Callback specific, check the callback documentation to see if it accepts this return value and it's effect.
Continue
Callback specific, check the callback documentation to see if it accepts this return value and it's effect.
Char(char)
Callback specific, check the callback documentation to see if it accepts this return value and it's effect.
Trait Implementations
impl Copy for CallbackReturn
[src]
impl Clone for CallbackReturn
[src]
fn clone(&self) -> CallbackReturn
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for CallbackReturn
[src]
fn eq(&self, __arg_0: &CallbackReturn) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CallbackReturn) -> bool
[src]
This method tests for !=
.
impl Eq for CallbackReturn
[src]
impl From<()> for CallbackReturn
[src]
fn from(_: ()) -> CallbackReturn
[src]
Performs the conversion.