Struct panoramix::RootHandler [−][src]
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,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> RoundFrom<T> for T
pub fn round_from(x: T) -> T
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
U: RoundFrom<T>,
pub fn round_into(self) -> U
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,