Rocket/core
Sergio Benitez d3323391ab Add fairing retrieval methods to 'Rocket'.
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>
2024-08-21 16:42:09 -07:00
..
codegen Fix various docstring typos. 2024-08-17 19:37:19 -07:00
http Derive equality, ordering traits for http::Status. 2024-08-19 15:52:44 -07:00
lib Add fairing retrieval methods to 'Rocket'. 2024-08-21 16:42:09 -07:00