StateInterface

Trait StateInterface 

Source
pub trait StateInterface:
    Send
    + Sync
    + Clone
where Self: Sized,
{ type UserData: Clone; // Required method fn new(_: Self::UserData) -> Self where Self: Sized; }

Required Associated Types§

Required Methods§

Source

fn new(_: Self::UserData) -> Self
where Self: Sized,

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.

Implementations on Foreign Types§

Source§

impl StateInterface for ()

Source§

type UserData = ()

Source§

fn new(_: Self::UserData) -> Self
where Self: Sized,

Implementors§