pub trait Command<S>: 'static {
type Output: 'static;
// Required method
fn run(
self,
state: S,
) -> impl Future<Output = Result<Self::Output, RouteError>> + 'static;
// Provided method
fn refreshes(&self) -> Vec<String> { ... }
}Expand description
An async mutation that views start with CommandHandle::run.
Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn refreshes(&self) -> Vec<String>
fn refreshes(&self) -> Vec<String>
The keys to invalidate once the command succeeded, rerunning the loads and queries that depend on them.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".