Skip to main content

CommandPetContext

Trait CommandPetContext 

Source
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§

Source

fn enabled(&self) -> bool

Source

fn is_open(&self) -> bool

Source

fn status(&self) -> String

Source

fn avatar_choices(&self) -> String

Source

fn select_avatar(&mut self, key: &str) -> bool

Source

fn preview_avatar(&mut self, name: &str, view: bool) -> bool

Source

fn set_enabled(&mut self, enabled: bool, persist: bool)

Source

fn set_sound(&mut self, enabled: bool)

Source

fn sound_label(&self) -> String

Source

fn export(&mut self) -> bool

Source

fn open_habitat(&mut self)

Source

fn queue(&mut self, control: CommandPetControl) -> bool

Queue a habitat control; false when it could not be delivered.

Source

fn label(&self, which: CommandPetLabel) -> String

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§