mirror of https://github.com/rwf2/Rocket.git
d3323391ab
Introduces four new methods: * `Rocket::fairing::<F>()` * `Rocket::fairing_mut::<F>()` * `Rocket::fairings::<F>()` * `Rocket::fairings_mut::<F>()` These methods allow retrieving references to fairings of type `F` from an instance of `Rocket`. The `fairing` and `fairing_mut` methods return a (mutable) reference to the first attached fairing of type `F`, while the `fairings` and `fairings_mut` methods return an iterator over (mutable) references to all attached fairings of type `F`. Co-authored-by: Matthew Pomes <matthew.pomes@pm.me> |
||
---|---|---|
.. | ||
codegen | ||
http | ||
lib |