pub struct KeyboardTomlConfig {
pub rmk: RmkConstantsConfig,
/* private fields */
}Expand description
Configurations for RMK keyboard.
Fields§
§rmk: RmkConstantsConfigRMK config constants
Implementations§
Source§impl KeyboardTomlConfig
impl KeyboardTomlConfig
pub fn get_chip_model(&self) -> Result<ChipModel, String>
Source§impl KeyboardTomlConfig
impl KeyboardTomlConfig
pub fn get_communication_config(&self) -> Result<CommunicationConfig, String>
Source§impl KeyboardTomlConfig
impl KeyboardTomlConfig
pub fn get_basic_info(&self) -> Basic
pub fn get_dependency_config(&self) -> DependencyConfig
Source§impl KeyboardTomlConfig
impl KeyboardTomlConfig
pub fn get_behavior_config(&self) -> Result<BehaviorConfig, String>
Source§impl KeyboardTomlConfig
impl KeyboardTomlConfig
pub fn get_board_config(&self) -> Result<BoardConfig, String>
Source§impl KeyboardTomlConfig
impl KeyboardTomlConfig
Sourcepub fn get_layout_config(&self) -> Result<LayoutConfig, String>
pub fn get_layout_config(&self) -> Result<LayoutConfig, String>
Layout is a mandatory field in toml, so we mainly check the sizes
Source§impl KeyboardTomlConfig
impl KeyboardTomlConfig
pub fn get_light_config(&self) -> LightConfig
Source§impl KeyboardTomlConfig
impl KeyboardTomlConfig
pub fn get_storage_config(&self) -> StorageConfig
Source§impl KeyboardTomlConfig
impl KeyboardTomlConfig
pub fn new_from_toml_str<P: AsRef<Path>>(config_toml_path: P) -> Self
Trait Implementations§
Source§impl Clone for KeyboardTomlConfig
impl Clone for KeyboardTomlConfig
Source§fn clone(&self) -> KeyboardTomlConfig
fn clone(&self) -> KeyboardTomlConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeyboardTomlConfig
impl Debug for KeyboardTomlConfig
Source§impl<'de> Deserialize<'de> for KeyboardTomlConfig
impl<'de> Deserialize<'de> for KeyboardTomlConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KeyboardTomlConfig
impl RefUnwindSafe for KeyboardTomlConfig
impl Send for KeyboardTomlConfig
impl Sync for KeyboardTomlConfig
impl Unpin for KeyboardTomlConfig
impl UnwindSafe for KeyboardTomlConfig
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