Skip to main content

UpdateInput

Trait UpdateInput 

Source
pub trait UpdateInput {
    type Model: Model;
    type Data: Send + Sync;

    // Required method
    fn into_ir(self) -> Self::Data;
}
Expand description

A typed shape that lowers to the Data payload for an update.

Required Associated Types§

Source

type Model: Model

The model this update input applies to.

Source

type Data: Send + Sync

The runtime payload type.

Required Methods§

Source

fn into_ir(self) -> Self::Data

Lower this input to the runtime payload.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§