[go: up one dir, main page]

[][src]Struct egui_web::backend::AppRunner

pub struct AppRunner {
    pub web_backend: WebBackend,
    pub web_input: WebInput,
    pub app: Box<dyn App>,
    pub needs_repaint: bool,
}

Fields

web_backend: WebBackendweb_input: WebInputapp: Box<dyn App>needs_repaint: bool

Implementations

impl AppRunner[src]

pub fn new(web_backend: WebBackend, app: Box<dyn App>) -> Result<Self, JsValue>[src]

pub fn canvas_id(&self) -> &str[src]

pub fn logic(&mut self) -> Result<(Output, PaintJobs), JsValue>[src]

pub fn paint(&mut self, paint_jobs: PaintJobs) -> Result<(), JsValue>[src]

Auto Trait Implementations

impl !RefUnwindSafe for AppRunner

impl !Send for AppRunner

impl !Sync for AppRunner

impl Unpin for AppRunner

impl !UnwindSafe for AppRunner

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, U> Into<U> for T where
    U: From<T>, 
[src]

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.