Struct alacritty::config::bindings::Binding [−][src]
pub struct Binding<T> {
pub mods: ModifiersState,
pub action: Action,
pub mode: BindingMode,
pub notmode: BindingMode,
pub trigger: T,
}Expand description
Describes a state and action to take in that state.
This is the shared component of MouseBinding and KeyBinding.
Fields
mods: ModifiersStateModifier keys required to activate binding.
action: ActionString to send to PTY if mods and mode match.
mode: BindingModeBinding mode required to activate binding.
notmode: BindingModeExcluded binding modes where the binding won’t be activated.
trigger: TThis property is used as part of the trigger detection code.
For example, this might be a key like “G”, or a mouse button.
Implementations
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<T> !RefUnwindSafe for Binding<T>
impl<T> !UnwindSafe for Binding<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.