pub trait ViewExt: View {
// Provided methods
fn first(self) -> impl Future<Output = Result<ViewHandle>> + Send
where Self: Sized { ... }
fn single(self) -> impl Future<Output = Result<ViewHandle>> + Send
where Self: Sized { ... }
fn boxed<'a>(self) -> BoxView<'a>
where Self: Sized + 'a { ... }
}Expand description
Methods available on every View.
Provided Methods§
Sourcefn first(self) -> impl Future<Output = Result<ViewHandle>> + Sendwhere
Self: Sized,
fn first(self) -> impl Future<Output = Result<ViewHandle>> + Sendwhere
Self: Sized,
Resolves the view’s first content and discards the view.
Later updates from a live view are discarded.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".