pub struct TestForm { /* private fields */ }
Trait Implementations§
Source§impl Component for TestForm
impl Component for TestForm
Source§type Message = TestFormMessage
type Message = TestFormMessage
Control message type which
update
loop get.Source§type Properties = TestFormProps
type Properties = TestFormProps
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(props: Self::Properties, _: ComponentLink<Self>) -> TestForm
fn create(props: Self::Properties, _: ComponentLink<Self>) -> TestForm
Initialization routine which could use a context.
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§fn change(&mut self, _: Self::Properties) -> bool
fn change(&mut self, _: Self::Properties) -> bool
This method called when properties changes, and once when component created.
Auto Trait Implementations§
impl Freeze for TestForm
impl !RefUnwindSafe for TestForm
impl !Send for TestForm
impl !Sync for TestForm
impl Unpin for TestForm
impl !UnwindSafe for TestForm
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