[][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_event_handler_manager: RefCell<EventHandlerManager<Ms>>,
    pub sub_manager: RefCell<SubManager<Ms>>,
    pub msg_listeners: RefCell<MsgListeners<Ms>>,
    pub scheduled_render_handle: RefCell<Option<RequestAnimationFrameHandle>>,
    pub after_next_render_callbacks: RefCell<Vec<Box<dyn FnOnce(RenderInfo) -> Option<Ms>>>>,
    pub render_info: Cell<Option<RenderInfo>>,
}

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_event_handler_manager: RefCell<EventHandlerManager<Ms>>sub_manager: RefCell<SubManager<Ms>>msg_listeners: RefCell<MsgListeners<Ms>>scheduled_render_handle: RefCell<Option<RequestAnimationFrameHandle>>after_next_render_callbacks: RefCell<Vec<Box<dyn FnOnce(RenderInfo) -> Option<Ms>>>>render_info: Cell<Option<RenderInfo>>

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

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> Sealed<T> for T where
    T: ?Sized

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,