macro_rules! prime { ($request:pat, $host:pat, $addr:pat, $(move |$($move:ident:$ty:ty ),+|)? $code:block) => { ... }; }
Expand description
Construct a Prime
extension like you write closures.
See crate::prepare!
for usage and useful examples.
See super::PrimeCall
for a list of arguments.
ยงExamples
let extension = prime!(_, _host, _addr, {
Some(Uri::from_static("https://doc.icelk.dev/"))
});