pub enum Verdict {
Won,
Lost {
to: String,
because: &'static str,
},
WhenFalse,
RemovedBy {
owner: OwnerId,
layer: Layer,
},
UnboundBy {
owner: OwnerId,
layer: Layer,
},
Prefix,
SurfaceNotFocused {
surface: String,
},
OtherWindow {
window: String,
},
PanelNotFocused {
panel: String,
},
LeftToTyping,
LeftToWidget,
BlockedByModal,
}Expand description
Why a candidate binding did or did not win.
Variants§
Won
Lost
Another binding won over it.
WhenFalse
Its when clause does not hold here.
RemovedBy
Its command was removed by a higher layer.
UnboundBy
Its keys were unbound by a higher layer.
Prefix
It is longer: the keys so far are its start.
SurfaceNotFocused
Its surface does not hold the focus.
OtherWindow
The keys were pressed in another application window.
PanelNotFocused
Its panel is not the focused panel of the window the keys were pressed in.
LeftToTyping
A text input has the focus and keeps the key.
LeftToWidget
The focused widget reads the key itself and the binding is global
(CONTEXT_WIDGET_KEYS).
BlockedByModal
A modal is open in the window and the binding is not a surface’s.
Trait Implementations§
impl StructuralPartialEq for Verdict
Auto Trait Implementations§
impl Freeze for Verdict
impl RefUnwindSafe for Verdict
impl Send for Verdict
impl Sync for Verdict
impl Unpin for Verdict
impl UnsafeUnpin for Verdict
impl UnwindSafe for Verdict
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more