pub struct RootModel { /* private fields */ }
Trait Implementations
sourceimpl Component<Registry> for RootModel
impl Component<Registry> for RootModel
type Message = RootMessage
type Message = RootMessage
Control message type which
update
loop get.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. Read moresourcefn 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.
sourcefn 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. Read moresourcefn change(
&mut self,
_: Self::Properties,
_context: &mut Env<'_, CTX, Self>
) -> bool
fn change(
&mut self,
_: Self::Properties,
_context: &mut Env<'_, CTX, Self>
) -> bool
This method called when properties changes, and once when component created.
Auto Trait Implementations
impl !RefUnwindSafe for RootModel
impl !Send for RootModel
impl !Sync for RootModel
impl Unpin for RootModel
impl !UnwindSafe for RootModel
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more