[][src]Trait candelabre_windowing::CandlUpdate

pub trait CandlUpdate<M> {
    fn update(&mut self, message: M);
}

Update Trait

When a surface become stateful, there is a way to do it, and it goes with this trait. It's the bridge between the state and the renderer, as it force the state handler to define an update method which then can be use by the surface.

Required methods

fn update(&mut self, message: M)

the state handler of

Loading content...

Implementors

impl CandlUpdate<()> for CandlNoState[src]

Loading content...