pub struct RootModel { /* private fields */ }
Trait Implementations§
Source§impl Component<Registry> for RootModel
impl Component<Registry> for RootModel
Source§type Message = RootMessage
type Message = RootMessage
Control message type which
update
loop get.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(
_props: Self::Properties,
context: &mut Env<'_, Registry, Self>,
) -> Self
fn create( _props: Self::Properties, context: &mut Env<'_, Registry, Self>, ) -> Self
Initialization routine which could use a context.
Source§fn update(
&mut self,
msg: Self::Message,
context: &mut Env<'_, Registry, Self>,
) -> bool
fn update( &mut self, msg: Self::Message, context: &mut Env<'_, Registry, Self>, ) -> bool
Called everytime when a messages of
Msg
type received. It also takes a
reference to a context.Auto Trait Implementations§
impl Freeze for RootModel
impl !RefUnwindSafe for RootModel
impl !Send for RootModel
impl !Sync for RootModel
impl Unpin for RootModel
impl !UnwindSafe for RootModel
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