Trait Bind

Source
pub trait Bind {
    // Required methods
    fn group(&mut self, group: impl ToString) -> &mut Self;
    fn description(&mut self, desc: impl ToString) -> &mut Self;
    fn set_as_quit(&mut self) -> &mut Self;
    fn set_as_reload_config(&mut self) -> &mut Self;
    fn allow_when_locked(&mut self) -> &mut Self;
}
Expand description

Functionality common to all bind types.

Required Methods§

Source

fn group(&mut self, group: impl ToString) -> &mut Self

Sets this bind’s group.

Source

fn description(&mut self, desc: impl ToString) -> &mut Self

Sets this bind’s description.

Source

fn set_as_quit(&mut self) -> &mut Self

Sets this bind as a quit bind.

Source

fn set_as_reload_config(&mut self) -> &mut Self

Sets this bind as a reload config bind.

Source

fn allow_when_locked(&mut self) -> &mut Self

Allows this bind to trigger when the session is locked.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§