commit
This commit is contained in:
parent
13f307d387
commit
3e129bd3d6
20 changed files with 1245 additions and 41 deletions
|
@ -90,7 +90,8 @@ pub enum HandlerCommand {
|
|||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Clone, Serialize, Deserialize)]
|
||||
pub struct InitialHandlerMessage<KeyConfig: Clone, KnobConfig: Clone> {
|
||||
pub struct InitialHandlerMessage<GlobalConfig: Clone, KeyConfig: Clone, KnobConfig: Clone> {
|
||||
pub global_config: GlobalConfig,
|
||||
pub key_configs: HashMap<KeyPath, KeyConfig>,
|
||||
pub knob_configs: HashMap<KnobPath, KnobConfig>,
|
||||
}
|
||||
|
@ -106,6 +107,7 @@ pub enum HandlerInitializationResultMessage {
|
|||
pub enum HandlerInitializationError {
|
||||
#[error("The provided handler config is invalid: {message}")]
|
||||
InvalidConfig {
|
||||
requires_global_config: bool,
|
||||
supports_keys: bool,
|
||||
supports_knobs: bool,
|
||||
message: Box<str>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue