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§
Sourcefn description(&mut self, desc: impl ToString) -> &mut Self
fn description(&mut self, desc: impl ToString) -> &mut Self
Sets this bind’s description.
Sourcefn set_as_quit(&mut self) -> &mut Self
fn set_as_quit(&mut self) -> &mut Self
Sets this bind as a quit bind.
Sourcefn set_as_reload_config(&mut self) -> &mut Self
fn set_as_reload_config(&mut self) -> &mut Self
Sets this bind as a reload config bind.
Sourcefn allow_when_locked(&mut self) -> &mut Self
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.