Skip to main content

EventRoutingState

Trait EventRoutingState 

Source
pub trait EventRoutingState<Id: ComponentId, Ctx: BindingContext> {
    // Required methods
    fn focused(&self) -> Option<Id>;
    fn modal(&self) -> Option<Id>;
    fn binding_context(&self, id: Id) -> Ctx;
    fn default_context(&self) -> Ctx;
}
Expand description

State accessors used by the event bus for routing decisions.

Required Methods§

Source

fn focused(&self) -> Option<Id>

Source

fn modal(&self) -> Option<Id>

Source

fn binding_context(&self, id: Id) -> Ctx

Source

fn default_context(&self) -> Ctx

Implementors§