RouterDestination

Trait RouterDestination 

Source
pub trait RouterDestination: Send + Sync {
    // Required methods
    fn exec_component(&self);
    fn shard_id(&self) -> &'static str;
}
Expand description

A navigation destination produced by the #[shard] macro.

Required Methods§

Source

fn exec_component(&self)

Execute the component associated with this destination.

Source

fn shard_id(&self) -> &'static str

Stable shard identifier used for state registry lookups / cleanup.

Implementors§