Trait Resource

Source
pub trait Resource {
    type Spec: Named + Serialize + for<'de> Deserialize<'de> + Send + Sync + Debug;
    type State: Named + Serialize + for<'de> Deserialize<'de> + Send + Sync + Debug;
}
Expand description

A trait that bundles a set of types that together define a resource.

Required Associated Types§

Source

type Spec: Named + Serialize + for<'de> Deserialize<'de> + Send + Sync + Debug

The spec specification for this resource.

Source

type State: Named + Serialize + for<'de> Deserialize<'de> + Send + Sync + Debug

The state for this resource.

Implementors§

Source§

impl<M: Mesh> Resource for M

Source§

type Spec = Spec<<M as Mesh>::Spec>

Source§

type State = State<<M as Mesh>::State>