[−][src]Struct sauron_native::Program
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]
MSG: Clone + Debug + 'static,
APP: Component<MSG> + 'static,
B: Backend<APP, MSG>,
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> Unpin for Program<APP, MSG, B> where
APP: Unpin,
MSG: Unpin,
APP: Unpin,
MSG: Unpin,
impl<APP, MSG, B> !Send for Program<APP, MSG, B>
impl<APP, MSG, B> UnwindSafe for Program<APP, MSG, B> where
APP: UnwindSafe,
B: RefUnwindSafe,
MSG: UnwindSafe,
APP: UnwindSafe,
B: RefUnwindSafe,
MSG: UnwindSafe,
impl<APP, MSG, B> !RefUnwindSafe for Program<APP, MSG, B>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,