pub trait RouterExt<AppState: 'static> {
// Required method
fn tapi<E: Endpoint<AppState> + ?Sized>(self, endpoint: &E) -> Self;
// Provided method
fn tapis<'a>(
self,
endpoints: impl IntoIterator<Item = &'a dyn Endpoint<AppState>>,
) -> Self
where Self: Sized { ... }
}
Required Methods§
Provided Methods§
fn tapis<'a>(
self,
endpoints: impl IntoIterator<Item = &'a dyn Endpoint<AppState>>,
) -> Selfwhere
Self: Sized,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.