Trait Parameters

Source
pub trait Parameters:
    Default
    + Send
    + 'static {
    type Runtime<E: Send + 'static>: ParameterRuntime<E> + Send;
    type Accessor<'a, E>
       where E: 'a;
    type Values: Copy;

    // Required methods
    fn create_runtime<E: Send>() -> Self::Runtime<E>;
    fn create_accessor<E: Send>(
        runtime: &Self::Runtime<E>,
    ) -> Self::Accessor<'_, E>;
}

Required Associated Types§

Source

type Runtime<E: Send + 'static>: ParameterRuntime<E> + Send

Source

type Accessor<'a, E> where E: 'a

Source

type Values: Copy

Required Methods§

Source

fn create_runtime<E: Send>() -> Self::Runtime<E>

Source

fn create_accessor<E: Send>(runtime: &Self::Runtime<E>) -> Self::Accessor<'_, E>

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§