pub trait LAEnvironmentObserver:
Send
+ Sync
+ 'static {
// Required method
fn state_did_change(
&self,
environment: &LAEnvironment,
old_state: &LAEnvironmentState,
);
}Expand description
Observer callbacks for LAEnvironment state changes.
Required Methods§
Sourcefn state_did_change(
&self,
environment: &LAEnvironment,
old_state: &LAEnvironmentState,
)
fn state_did_change( &self, environment: &LAEnvironment, old_state: &LAEnvironmentState, )
Invoked after environment has transitioned away from old_state.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".