Expand description
Here, all extensions code is housed.
Check out the page about extensions at kvarn.org for more info.
If you want to make new extensions for others to use, make sure to check other extensions,
so the priorities are valid. This can be done by using the debug implementation on Extensions
.
let extensions = Extensions::new();
println!("The currently mounted extensions: {:#?}", extensions);
Structs§
- Contains all extensions. See kvarn.org on extensions for more info.
- A extension Id. The
Self::priority
is used for sorting extensions andSelf::name
for debugging which extensions are mounted. - Add data pretending to present state in creating the response.
- A set of rules applicable to certain paths. See the note at
Self::empty
on how paths are matched.
Constants§
- Used for the
server
header etc
Traits§
- Implement this to pass your extension to
Extensions::add_package
. - Implement this to pass your extension to
Extensions::add_post
. - Implement this to pass your extension to
Extensions::add_prepare_fn
orExtensions::add_prepare_single
.