Skip to main content

register_with

Function register_with 

Source
pub fn register_with<H>(
    commands: &mut Commands<H>,
    owner: &OwnerId,
    store: Arc<Mutex<Store>>,
    wrap: impl Fn(FnHandler) -> H,
) -> Result<(), RegisterError>
Expand description

As register, on a registry with another handler type: wrap turns each plain handler into one.