Expand description
Helpers every macro built on this crate uses, ulo-macros included.
Functions§
- check_
factory_ params - A factory’s parameters are injection points, read by type, so each needs its type written. Checked to report the error on the parameter rather than on a factory bound the closure fails as a whole.
- combine
- Every error in
errorsas one, so a single expansion reports all of them;Nonewhen empty. - wrap_
async |u: Ext<CurrentUser>| RoleGuard::require(u)becomes|u: Ext<CurrentUser>| async move { RoleGuard::require(u) }. An explicit return type moves onto a binding inside the block, since anasyncblock cannot carry one. An enhancer attribute’swithentry,#[module]’sintolists and a gateway’sconnect_guardsandsession_withshare it, so a closure is written the same way in each.