@@ -192,16 +192,16 @@ macro_rules! pub_response_impl {
192192 #[ doc = $doc_prelude]
193193 /// # Client::_test_with(|r| r.mount("/", routes![index]), |_, _, response| {
194194 /// let response: LocalResponse = response;
195- /// assert!(response.routed_by ::<index>());
195+ /// assert!(response.was_routed_by ::<index>());
196196 /// # });
197197 /// ```
198198 ///
199199 /// # Other Route types
200200 ///
201201 /// [`FileServer`](crate::fs::FileServer) implementes `RouteType`, so a route that should
202- /// return a static file can be checked against it. Libraries which provide a Route type should
202+ /// return a static file can be checked against it. Libraries which provide custom Routes should
203203 /// implement `RouteType`, see [`RouteType`](crate::route::RouteType) for more information.
204- pub fn routed_by <T : crate :: route:: RouteType >( & self ) -> bool {
204+ pub fn was_routed_by <T : crate :: route:: RouteType >( & self ) -> bool {
205205 if let Some ( route_type) = self . _request( ) . route( ) . map( |r| r. route_type) . flatten( ) {
206206 route_type == std:: any:: TypeId :: of:: <T >( )
207207 } else {
@@ -220,14 +220,14 @@ macro_rules! pub_response_impl {
220220 #[ doc = $doc_prelude]
221221 /// # Client::_test_with(|r| r.register("/", catchers![default_404]), |_, _, response| {
222222 /// let response: LocalResponse = response;
223- /// assert!(response.caught_by ::<default_404>());
223+ /// assert!(response.was_caught_by ::<default_404>());
224224 /// # });
225225 /// ```
226226 ///
227227 /// # Rocket's default catcher
228228 ///
229229 /// The default catcher has a `CatcherType` of [`DefaultCatcher`](crate::catcher::DefaultCatcher)
230- pub fn caught_by <T : crate :: catcher:: CatcherType >( & self ) -> bool {
230+ pub fn was_caught_by <T : crate :: catcher:: CatcherType >( & self ) -> bool {
231231 if let Some ( catcher_type) = self . _request( ) . catcher( ) . map( |r| r. catcher_type) . flatten( ) {
232232 catcher_type == std:: any:: TypeId :: of:: <T >( )
233233 } else {
0 commit comments