pub struct Once<S, R, F> { /* private fields */ }
Trait Implementations§
source§impl<S, R, F, P> View for Once<S, R, F>where
S: IntoState,
F: FnOnce(Signal<S::State>) -> P,
P: 'static,
Stateful<S, R>: View<Product = StatefulProduct<S::State>>,
impl<S, R, F, P> View for Once<S, R, F>where S: IntoState, F: FnOnce(Signal<S::State>) -> P, P: 'static, Stateful<S, R>: View<Product = StatefulProduct<S::State>>,
§type Product = OnceProduct<<S as IntoState>::State, P>
type Product = OnceProduct<<S as IntoState>::State, P>
The product should contain a DOM reference to this View and
any data it needs to update itself.
source§fn build(self, p: In<'_, Self::Product>) -> Out<'_, Self::Product>
fn build(self, p: In<'_, Self::Product>) -> Out<'_, Self::Product>
Build a product that can be mounted in the DOM from this type.
source§fn update(self, p: &mut Self::Product)
fn update(self, p: &mut Self::Product)
Update the product and apply changes to the DOM if necessary.
Auto Trait Implementations§
impl<S, R, F> RefUnwindSafe for Once<S, R, F>where F: RefUnwindSafe, R: RefUnwindSafe, S: RefUnwindSafe,
impl<S, R, F> Send for Once<S, R, F>where F: Send, R: Send, S: Send,
impl<S, R, F> Sync for Once<S, R, F>where F: Sync, R: Sync, S: Sync,
impl<S, R, F> Unpin for Once<S, R, F>where F: Unpin, R: Unpin, S: Unpin,
impl<S, R, F> UnwindSafe for Once<S, R, F>where F: UnwindSafe, R: UnwindSafe, S: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more