Struct panoramix::RootHandler[][src]

pub struct RootHandler<RootElem: Element<NoEvent, ()> + Clone + 'static> {
    pub root_widget: RootWidget<RootElem>,
    pub init_tracing: bool,
}

Creates a GUI application from a component

Fields

root_widget: RootWidget<RootElem>init_tracing: bool

Implementations

impl<Comp: Component<Props = ()>> RootHandler<ComponentHolder<Comp, NoEvent, ()>>[src]

pub fn new(root_component: Comp) -> Self[src]

Creates the data to start the application.

The root_component parameter should be roughly YourRootComponent::new(some_props).

Call launch to actually start the application.

pub fn with_initial_state(self, comp_local_state: Comp::LocalState) -> Self[src]

Set the local state of the root component to a value other than default

impl<RootElem: Element<NoEvent, ()> + Clone + 'static> RootHandler<RootElem>[src]

pub fn with_tracing(self, init_tracing: bool) -> Self[src]

pub fn launch(self) -> Result<(), PlatformError>[src]

Start the application.

Auto Trait Implementations

impl<RootElem> !RefUnwindSafe for RootHandler<RootElem>

impl<RootElem> !Send for RootHandler<RootElem>

impl<RootElem> !Sync for RootHandler<RootElem>

impl<RootElem> Unpin for RootHandler<RootElem> where
    RootElem: Unpin,
    <RootElem as Element<NoEvent, ()>>::AggregateChildrenState: Unpin,
    <RootElem as Element<NoEvent, ()>>::BuildOutput: Unpin,
    <<RootElem as Element<NoEvent, ()>>::BuildOutput as VirtualDom<NoEvent, ()>>::TargetWidgetSeq: Unpin

impl<RootElem> !UnwindSafe for RootHandler<RootElem>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> RoundFrom<T> for T

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.