pub trait MultiModeComponentAction<M: ModeOfOperation>: ComponentAction {
// Provided method
fn on_mode_changed(
&mut self,
_from: M,
_to: M,
_exec_handle: u32,
) -> ReturnCode { ... }
}Expand description
Spec §5.3.3 — MultiModeComponentAction. Extends
ComponentAction with mode-change callbacks.
Provided Methods§
Sourcefn on_mode_changed(&mut self, _from: M, _to: M, _exec_handle: u32) -> ReturnCode
fn on_mode_changed(&mut self, _from: M, _to: M, _exec_handle: u32) -> ReturnCode
Spec §5.3.3.x — on_mode_changed. Invoked on the change from
from_mode to to_mode.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".