Skip to main content

Component

Trait Component 

Source
pub trait Component {
    type Props: Props;

    // Required method
    fn render(
        self,
        cx: &Cx,
        props: Self::Props,
    ) -> impl Future<Output = Result<View, Error>> + Send;

    // Provided method
    fn props_builder() -> <Self::Props as Props>::Builder { ... }
}

Required Associated Types§

Required Methods§

Source

fn render( self, cx: &Cx, props: Self::Props, ) -> impl Future<Output = Result<View, Error>> + Send

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§