pub trait CommandPetContext {
Show 13 methods
// Required methods
fn enabled(&self) -> bool;
fn is_open(&self) -> bool;
fn status(&self) -> String;
fn avatar_choices(&self) -> String;
fn select_avatar(&mut self, key: &str) -> bool;
fn preview_avatar(&mut self, name: &str, view: bool) -> bool;
fn set_enabled(&mut self, enabled: bool, persist: bool);
fn set_sound(&mut self, enabled: bool);
fn sound_label(&self) -> String;
fn export(&mut self) -> bool;
fn open_habitat(&mut self);
fn queue(&mut self, control: CommandPetControl) -> bool;
fn label(&self, which: CommandPetLabel) -> String;
}Required Methods§
fn enabled(&self) -> bool
fn is_open(&self) -> bool
fn status(&self) -> String
fn avatar_choices(&self) -> String
fn select_avatar(&mut self, key: &str) -> bool
fn preview_avatar(&mut self, name: &str, view: bool) -> bool
fn set_enabled(&mut self, enabled: bool, persist: bool)
fn set_sound(&mut self, enabled: bool)
fn sound_label(&self) -> String
fn export(&mut self) -> bool
fn open_habitat(&mut self)
Sourcefn queue(&mut self, control: CommandPetControl) -> bool
fn queue(&mut self, control: CommandPetControl) -> bool
Queue a habitat control; false when it could not be delivered.
fn label(&self, which: CommandPetLabel) -> String
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".