PrivateModel

Trait PrivateModel 

Source
pub trait PrivateModel
where Self: Sized + 'static,
{ // Provided methods fn into_vtable<Substates: ModelState>( self: Box<Self>, ) -> AnyModel<Substates> { ... } fn into_vtable2<Substates: ModelState>() -> AnyModel<Substates> { ... } fn process_pure<Substates: ModelState>( _state: &mut State<Substates>, _action: AnyAction, _dispatcher: &mut Dispatcher, ) { ... } fn process_effectful( _state: &mut Box<dyn Any>, _action: AnyAction, _dispatcher: &mut Dispatcher, ) { ... } fn serialize_into(_writer: &mut BufWriter<File>, _action: &AnyAction) { ... } fn deserialize_from(_reader: &mut BufReader<File>) -> AnyAction { ... } }

Provided Methods§

Source

fn into_vtable<Substates: ModelState>(self: Box<Self>) -> AnyModel<Substates>

Source

fn into_vtable2<Substates: ModelState>() -> AnyModel<Substates>

Source

fn process_pure<Substates: ModelState>( _state: &mut State<Substates>, _action: AnyAction, _dispatcher: &mut Dispatcher, )

Source

fn process_effectful( _state: &mut Box<dyn Any>, _action: AnyAction, _dispatcher: &mut Dispatcher, )

Source

fn serialize_into(_writer: &mut BufWriter<File>, _action: &AnyAction)

Source

fn deserialize_from(_reader: &mut BufReader<File>) -> AnyAction

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§