[][src]Struct sauron_native::Program

pub struct Program<APP, MSG, B> { /* fields omitted */ }

Holds the app and the dom updater This is passed into the event listener and the dispatch program will be called after the event is triggered.

Methods

impl<APP, MSG, B> Program<APP, MSG, B> where
    MSG: Clone + Debug + 'static,
    APP: Component<MSG> + 'static,
    B: Backend<APP, MSG>, 
[src]

pub fn new(app: APP) -> Rc<Self>[src]

Create an Rc wrapped instance of program, initializing DomUpdater with the initial view and root node, but doesn't mount it yet.

pub fn dispatch(self: &Rc<Self>, msg: MSG)[src]

This is called when an event is triggered in the html DOM.

Auto Trait Implementations

impl<APP, MSG, B> !Sync for Program<APP, MSG, B>

impl<APP, MSG, B> !Send for Program<APP, MSG, B>

impl<APP, MSG, B> Unpin for Program<APP, MSG, B> where
    APP: Unpin,
    MSG: Unpin

impl<APP, MSG, B> !RefUnwindSafe for Program<APP, MSG, B>

impl<APP, MSG, B> UnwindSafe for Program<APP, MSG, B> where
    APP: UnwindSafe,
    B: RefUnwindSafe,
    MSG: UnwindSafe

Blanket Implementations

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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]