Enum r_extcap::ReloadConfigError
source · pub enum ReloadConfigError {
UnknownInterface(String),
UnknownConfig(String),
UnsupportedConfig(String),
}
Expand description
Error when reloading configs. Config reload happens when a config, like
crate::config::SelectorConfig
specifics the reload
field and the user
clicks on the created reload button.
Variants§
UnknownInterface(String)
The interface string value given from Wireshark is not found. Wireshark
makes separate invocations to get the initial list of interfaces, and
when the user subsequently hits reload on a config. Therefore,
implementations should make sure that the interfaces returned from
ExtcapApplication::interfaces
are deterministic and doesn’t change
across invocations of the program.
UnknownConfig(String)
The config call
value given from Wireshark is not found in the configs
defined for this ExtcapApplication
. Wireshark makes separate
invocations to get the initial list of interfaces, and when the user
subsequently hits reload on a config. Therefore, implementations should
make sure that the configs returned from
ExtcapApplication::configs
are deterministic and doesn’t change
across invocations of the program.
UnsupportedConfig(String)
The config given by Wireshark is found, but it is not a
SelectorConfig
. This configuration is not expected to be invoked by
Wireshark, as the SelectorConfig::reload
field only exists for the
appropriate types.