[][src]Struct seed::app::data::AppData

pub struct AppData<Ms: 'static, Mdl> {
    pub model: RefCell<Option<Mdl>>,
    pub main_el_vdom: RefCell<Option<El<Ms>>>,
    pub popstate_closure: RefCell<Option<Closure<dyn FnMut(Event)>>>,
    pub hashchange_closure: RefCell<Option<Closure<dyn FnMut(Event)>>>,
    pub routes: RefCell<Option<RoutesFn<Ms>>>,
    pub window_listeners: RefCell<Vec<Listener<Ms>>>,
    pub msg_listeners: RefCell<MsgListeners<Ms>>,
    pub scheduled_render_handle: RefCell<Option<RequestAnimationFrameHandle>>,
    pub after_next_render_callbacks: RefCell<Vec<Box<dyn FnOnce(Option<RenderTimestampDelta>) -> Ms>>>,
    pub render_timestamp: Cell<Option<RenderTimestamp>>,
}

Used as part of an interior-mutability pattern, ie Rc<RefCell<>>

Fields

model: RefCell<Option<Mdl>>main_el_vdom: RefCell<Option<El<Ms>>>popstate_closure: RefCell<Option<Closure<dyn FnMut(Event)>>>hashchange_closure: RefCell<Option<Closure<dyn FnMut(Event)>>>routes: RefCell<Option<RoutesFn<Ms>>>window_listeners: RefCell<Vec<Listener<Ms>>>msg_listeners: RefCell<MsgListeners<Ms>>scheduled_render_handle: RefCell<Option<RequestAnimationFrameHandle>>after_next_render_callbacks: RefCell<Vec<Box<dyn FnOnce(Option<RenderTimestampDelta>) -> Ms>>>render_timestamp: Cell<Option<RenderTimestamp>>

Auto Trait Implementations

impl<Ms, Mdl> !RefUnwindSafe for AppData<Ms, Mdl>

impl<Ms, Mdl> !Send for AppData<Ms, Mdl>

impl<Ms, Mdl> !Sync for AppData<Ms, Mdl>

impl<Ms, Mdl> Unpin for AppData<Ms, Mdl> where
    Mdl: Unpin,
    Ms: Unpin

impl<Ms, Mdl> !UnwindSafe for AppData<Ms, Mdl>

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.