pub struct EntryPoint { /* private fields */ }Expand description
Builder for application entry configuration and startup.
Implementations§
Source§impl EntryPoint
impl EntryPoint
Sourcepub fn runtime_session(&self) -> &RuntimeSession
pub fn runtime_session(&self) -> &RuntimeSession
Returns the runtime owner used by this application entry.
Sourcepub fn new<Output>(entry: impl Fn() -> Output + 'static) -> Self
pub fn new<Output>(entry: impl Fn() -> Output + 'static) -> Self
Creates a new entry point builder from the root UI function.
Sourcepub fn module(self, module: impl RenderModule + 'static) -> Self
pub fn module(self, module: impl RenderModule + 'static) -> Self
Adds a render module to the entry registry.
Sourcepub fn plugin(self, plugin: impl Plugin) -> Self
pub fn plugin(self, plugin: impl Plugin) -> Self
Registers a plugin instance with this application session.
Sourcepub fn plugin_boxed<P: Plugin>(self, plugin: Arc<RwLock<P>>) -> Self
pub fn plugin_boxed<P: Plugin>(self, plugin: Arc<RwLock<P>>) -> Self
Registers a boxed plugin instance with this application session.
Sourcepub fn package(self, package: impl TesseraPackage) -> Self
pub fn package(self, package: impl TesseraPackage) -> Self
Registers a package into the entry registry.
Sourcepub fn config(self, config: TesseraConfig) -> Self
pub fn config(self, config: TesseraConfig) -> Self
Overrides the renderer configuration for this entry.
Sourcepub fn into_headless(
self,
config: HeadlessConfig,
) -> Result<HeadlessRenderer, HeadlessError>
pub fn into_headless( self, config: HeadlessConfig, ) -> Result<HeadlessRenderer, HeadlessError>
Creates an offscreen renderer with this entry’s packages and GPU settings.
Sourcepub fn run_desktop(self) -> Result<(), EventLoopError>
pub fn run_desktop(self) -> Result<(), EventLoopError>
Runs the entry point on desktop platforms.
Auto Trait Implementations§
impl !RefUnwindSafe for EntryPoint
impl !Send for EntryPoint
impl !Sync for EntryPoint
impl !UnwindSafe for EntryPoint
impl Freeze for EntryPoint
impl Unpin for EntryPoint
impl UnsafeUnpin for EntryPoint
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.