Skip to main content

Update

Trait Update 

Source
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§

Source

type Input

Arguments to pass to Self::apply_update_input.

Required Methods§

Source

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.

Implementors§