pub struct RootComponent { /* private fields */ }
Expand description
Data Model for the Root Component
Trait Implementations§
Source§impl Component for RootComponent
impl Component for RootComponent
Source§type Properties = ()
type Properties = ()
Properties type of component implementation.
It sould be serializable because it’s sent to dynamicaly created
component (layed under
VComp
) and must be restored for a component
with unknown type.Source§fn create(_: Self::Properties, link: ComponentLink<Self>) -> Self
fn create(_: Self::Properties, link: ComponentLink<Self>) -> Self
Initialization routine which could use a context.
Source§fn change(&mut self, _: Self::Properties) -> ShouldRender
fn change(&mut self, _: Self::Properties) -> ShouldRender
This method called when properties changes, and once when component created.
Source§fn update(&mut self, msg: Self::Message) -> ShouldRender
fn update(&mut self, msg: Self::Message) -> ShouldRender
Called everytime when a messages of
Msg
type received. It also takes a
reference to a context.Source§impl Renderable<RootComponent> for RootComponent
impl Renderable<RootComponent> for RootComponent
Auto Trait Implementations§
impl Freeze for RootComponent
impl !RefUnwindSafe for RootComponent
impl !Send for RootComponent
impl !Sync for RootComponent
impl Unpin for RootComponent
impl !UnwindSafe for RootComponent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more