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::priorityis used for sorting extensions andSelf::namefor 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::emptyon how paths are matched.
Constants§
- Used for the
serverheader 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_fnorExtensions::add_prepare_single.