Skip to main content

SpellAssociatedNew

Trait SpellAssociatedNew 

Source
pub trait SpellAssociatedNew: Debug {
    // Required method
    fn on_call(&mut self) -> Result<(), Box<dyn Error>>;

    // Provided methods
    fn get_span(&self) -> Span { ... }
    fn is_locked(&self) -> bool { ... }
}
Expand description

This is an internal trait implemented by objects generated from generate_widgets. It helps in running every SpellWidget (like SpellWin, SpellLock) through the same event_loop function.

Required Methods§

Source

fn on_call(&mut self) -> Result<(), Box<dyn Error>>

Internal method used to call to update UI in a loop.

Provided Methods§

Source

fn get_span(&self) -> Span

Internal method used to retrive logging span of a window.

Source

fn is_locked(&self) -> bool

Internal method used to specify when to eliminate the event loop.

Implementors§