Skip to main content

Binding

Trait Binding 

Source
pub trait Binding<R: Resource> {
    // Required method
    fn bound(self) -> Option<Invoke<R>>;
}
Expand description

What a slot of the bar does when pressed: a verb of the record with its arguments, a field edit, an effect the app answers. A binding is submitted through the window’s dispatcher, never run by the app’s own code, so the window’s bar and an assistive technology take the same door.

Required Methods§

Source

fn bound(self) -> Option<Invoke<R>>

What a press submits; None where the app names something the record does not publish (a control the framework reports unbound).

Implementations on Foreign Types§

Source§

impl<R: Resource, E: Effect> Binding<R> for &E

Source§

fn bound(self) -> Option<Invoke<R>>

Implementors§

Source§

impl<R: Resource> Binding<R> for Invoke<R>