pub trait Proxy:
Debug
+ Sized
+ Any {
// Required methods
fn on_register(&self);
fn on_remove(&self);
}Expand description
The definition for a PureMVC Proxy.
In PureMVC, Proxy implementors assume these responsibilities:
- Implement a common method which returns the name of the Proxy.
Additionally, Proxy’s typically:
- Maintain references to one or more pieces of model data.
- Provide methods for manipulating that data.
- Generate Notification’s when their model data changes.
- Expose their name using Debug or Display.
- Encapsulate interaction with local or remote services used to fetch and persist model data.
Required Methods§
Sourcefn on_register(&self)
fn on_register(&self)
Called by the Model when the Proxy is registered
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".