ChooseView

Trait ChooseView 

Source
pub trait ChooseView
where Self: Send + Clone + 'static,
{ // Required methods fn choose(self) -> impl Future<Output = AnyView>; fn preload(&self) -> impl Future<Output = ()>; }

Required Methods§

Source

fn choose(self) -> impl Future<Output = AnyView>

Source

fn preload(&self) -> impl Future<Output = ()>

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.

Implementations on Foreign Types§

Source§

impl ChooseView for ()

Source§

async fn choose(self) -> AnyView

Source§

async fn preload(&self)

Source§

impl<A, B> ChooseView for Either<A, B>
where A: ChooseView, B: ChooseView,

Source§

async fn choose(self) -> AnyView

Source§

async fn preload(&self)

Source§

impl<A, B, C> ChooseView for EitherOf3<A, B, C>
where A: ChooseView, B: ChooseView, C: ChooseView,

Source§

async fn choose(self) -> AnyView

Source§

async fn preload(&self)

Source§

impl<A, B, C, D> ChooseView for EitherOf4<A, B, C, D>

Source§

async fn choose(self) -> AnyView

Source§

async fn preload(&self)

Source§

impl<A, B, C, D, E> ChooseView for EitherOf5<A, B, C, D, E>

Source§

async fn choose(self) -> AnyView

Source§

async fn preload(&self)

Source§

impl<A, B, C, D, E, F> ChooseView for EitherOf6<A, B, C, D, E, F>

Source§

async fn choose(self) -> AnyView

Source§

async fn preload(&self)

Source§

impl<A, B, C, D, E, F, G> ChooseView for EitherOf7<A, B, C, D, E, F, G>

Source§

async fn choose(self) -> AnyView

Source§

async fn preload(&self)

Source§

impl<A, B, C, D, E, F, G, H> ChooseView for EitherOf8<A, B, C, D, E, F, G, H>

Source§

async fn choose(self) -> AnyView

Source§

async fn preload(&self)

Source§

impl<A, B, C, D, E, F, G, H, I> ChooseView for EitherOf9<A, B, C, D, E, F, G, H, I>

Source§

async fn choose(self) -> AnyView

Source§

async fn preload(&self)

Source§

impl<A, B, C, D, E, F, G, H, I, J> ChooseView for EitherOf10<A, B, C, D, E, F, G, H, I, J>

Source§

async fn choose(self) -> AnyView

Source§

async fn preload(&self)

Source§

impl<A, B, C, D, E, F, G, H, I, J, K> ChooseView for EitherOf11<A, B, C, D, E, F, G, H, I, J, K>

Source§

async fn choose(self) -> AnyView

Source§

async fn preload(&self)

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L> ChooseView for EitherOf12<A, B, C, D, E, F, G, H, I, J, K, L>

Source§

async fn choose(self) -> AnyView

Source§

async fn preload(&self)

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M> ChooseView for EitherOf13<A, B, C, D, E, F, G, H, I, J, K, L, M>

Source§

async fn choose(self) -> AnyView

Source§

async fn preload(&self)

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> ChooseView for EitherOf14<A, B, C, D, E, F, G, H, I, J, K, L, M, N>

Source§

async fn choose(self) -> AnyView

Source§

async fn preload(&self)

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> ChooseView for EitherOf15<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O>

Source§

async fn choose(self) -> AnyView

Source§

async fn preload(&self)

Source§

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> ChooseView for EitherOf16<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P>

Source§

async fn choose(self) -> AnyView

Source§

async fn preload(&self)

Implementors§

Source§

impl<F, View> ChooseView for F
where F: Fn() -> View + Send + Clone + 'static, View: IntoAny,

Source§

impl<T> ChooseView for Lazy<T>
where T: Send + Sync + LazyRoute,