pub trait Update<A>: Resource {
type Input;
// Required method
fn apply_update_input(&mut self, input: Self::Input);
}Expand description
Trait placed on a Resource specifying how to update a resource using action A.
Required Associated Types§
Sourcetype Input
type Input
Arguments to pass to Self::apply_update_input.
Required Methods§
Sourcefn apply_update_input(&mut self, input: Self::Input)
fn apply_update_input(&mut self, input: Self::Input)
Update an instance of self using Self::Input.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.