pub struct Registry {
pub console: ConsoleService,
pub timeout: TimeoutService,
/* private fields */
}
Fields§
§console: ConsoleService
§timeout: TimeoutService
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 Registry
impl !RefUnwindSafe for Registry
impl !Send for Registry
impl !Sync for Registry
impl Unpin for Registry
impl !UnwindSafe for Registry
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