pub trait Component<Msg>:
Send
+ Sync
+ 'static{
// Required methods
fn update<'life0, 'async_trait>(
&'life0 mut self,
msg: Msg,
) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn update_bindings<'life0, 'async_trait>(
&'life0 mut self,
bindings: Shared<Vec<String>>,
) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn view<'life0, 'async_trait>(
&'life0 self,
shared_self: Shared<Self>,
) -> Pin<Box<dyn Future<Output = Html> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Required Methods§
fn update<'life0, 'async_trait>(
&'life0 mut self,
msg: Msg,
) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_bindings<'life0, 'async_trait>(
&'life0 mut self,
bindings: Shared<Vec<String>>,
) -> Pin<Box<dyn Future<Output = ()> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn view<'life0, 'async_trait>(
&'life0 self,
shared_self: Shared<Self>,
) -> Pin<Box<dyn Future<Output = Html> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
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.