pub struct ReloadConfigStep<'a> {
pub interface: &'a str,
pub config: &'a str,
}Expand description
Reload operation for a particular configuration. This is invoked when the
user clicks on the reload button created by a SelectorConfig with the
reload field set. Corresponds to the
--extcap-reload-option argument in extcap.
Fields§
§interface: &'a strThe Interface::value from the interface the reloaded config is
associated with.
config: &'a strThe ConfigTrait::call of the config being reloaded.
Implementations§
Source§impl<'a> ReloadConfigStep<'a>
impl<'a> ReloadConfigStep<'a>
Sourcepub fn reload_options(
&self,
config: &SelectorConfig,
) -> Result<(), ReloadConfigError>
pub fn reload_options( &self, config: &SelectorConfig, ) -> Result<(), ReloadConfigError>
Calls the reload function in the given
config. Returns the error ReloadConfigError::UnsupportedConfig if
the given config does not have reload set.
If you have the list of configs for the given interface, consider using
reload_from_configs instead.
Sourcepub fn reload_from_configs(
&self,
configs: &[&dyn ConfigTrait],
) -> Result<(), ReloadConfigError>
pub fn reload_from_configs( &self, configs: &[&dyn ConfigTrait], ) -> Result<(), ReloadConfigError>
Process config reload request using the list of configs. This list is
typically the same as the one given to ConfigStep::list_configs.
Auto Trait Implementations§
impl<'a> Freeze for ReloadConfigStep<'a>
impl<'a> RefUnwindSafe for ReloadConfigStep<'a>
impl<'a> Send for ReloadConfigStep<'a>
impl<'a> Sync for ReloadConfigStep<'a>
impl<'a> Unpin for ReloadConfigStep<'a>
impl<'a> UnwindSafe for ReloadConfigStep<'a>
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