pub struct Audio<Children, State, Action> { /* private fields */ }Trait Implementations§
Source§impl<Children, State, Action> View<State, Action, ViewCtx> for Audio<Children, State, Action>where
Children: 'static,
State: 'static,
Action: 'static,
impl<Children, State, Action> View<State, Action, ViewCtx> for Audio<Children, State, Action>where
Children: 'static,
State: 'static,
Action: 'static,
Source§type Element = Pod<HtmlAudioElement>
type Element = Pod<HtmlAudioElement>
The element type which this view operates on.
Source§type ViewState = ElementState
type ViewState = ElementState
State that is used over the lifetime of the retained representation of the view. Read more
Source§fn build(
&self,
ctx: &mut ViewCtx,
app_state: &mut State,
) -> (Self::Element, Self::ViewState)
fn build( &self, ctx: &mut ViewCtx, app_state: &mut State, ) -> (Self::Element, Self::ViewState)
Create the corresponding Element value.
Source§fn rebuild(
&self,
prev: &Self,
element_state: &mut Self::ViewState,
ctx: &mut ViewCtx,
element: Mut<'_, Self::Element>,
app_state: &mut State,
)
fn rebuild( &self, prev: &Self, element_state: &mut Self::ViewState, ctx: &mut ViewCtx, element: Mut<'_, Self::Element>, app_state: &mut State, )
Update
element based on the difference between self and prev.Source§fn teardown(
&self,
element_state: &mut Self::ViewState,
ctx: &mut ViewCtx,
element: Mut<'_, Self::Element>,
)
fn teardown( &self, element_state: &mut Self::ViewState, ctx: &mut ViewCtx, element: Mut<'_, Self::Element>, )
Handle
element being removed from the tree. Read moreSource§fn message(
&self,
element_state: &mut Self::ViewState,
message: &mut MessageContext,
element: Mut<'_, Self::Element>,
app_state: &mut State,
) -> MessageResult<Action>
fn message( &self, element_state: &mut Self::ViewState, message: &mut MessageContext, element: Mut<'_, Self::Element>, app_state: &mut State, ) -> MessageResult<Action>
Route
message to id_path, if that is still a valid path.impl<Children, State, Action> ViewMarker for Audio<Children, State, Action>
Auto Trait Implementations§
impl<Children, State, Action> !RefUnwindSafe for Audio<Children, State, Action>
impl<Children, State, Action> !Send for Audio<Children, State, Action>
impl<Children, State, Action> !Sync for Audio<Children, State, Action>
impl<Children, State, Action> !UnwindSafe for Audio<Children, State, Action>
impl<Children, State, Action> Freeze for Audio<Children, State, Action>
impl<Children, State, Action> Unpin for Audio<Children, State, Action>where
Children: Unpin,
impl<Children, State, Action> UnsafeUnpin for Audio<Children, State, Action>
Blanket Implementations§
Source§impl<State, Action, Context, DynamicElement, V> AnyView<State, Action, Context, DynamicElement> for Vwhere
DynamicElement: AnyElement<<V as View<State, Action, Context>>::Element, Context>,
Context: ViewPathTracker,
V: View<State, Action, Context> + 'static,
<V as View<State, Action, Context>>::ViewState: 'static,
impl<State, Action, Context, DynamicElement, V> AnyView<State, Action, Context, DynamicElement> for Vwhere
DynamicElement: AnyElement<<V as View<State, Action, Context>>::Element, Context>,
Context: ViewPathTracker,
V: View<State, Action, Context> + 'static,
<V as View<State, Action, Context>>::ViewState: 'static,
Source§fn dyn_build(
&self,
ctx: &mut Context,
app_state: &mut State,
) -> (DynamicElement, AnyViewState)
fn dyn_build( &self, ctx: &mut Context, app_state: &mut State, ) -> (DynamicElement, AnyViewState)
Type erased
View::build.Source§fn dyn_rebuild(
&self,
dyn_state: &mut AnyViewState,
ctx: &mut Context,
prev: &dyn AnyView<State, Action, Context, DynamicElement>,
element: <DynamicElement as ViewElement>::Mut<'_>,
app_state: &mut State,
)
fn dyn_rebuild( &self, dyn_state: &mut AnyViewState, ctx: &mut Context, prev: &dyn AnyView<State, Action, Context, DynamicElement>, element: <DynamicElement as ViewElement>::Mut<'_>, app_state: &mut State, )
Type erased
View::rebuild.Source§fn dyn_teardown<'el>(
&self,
dyn_state: &mut AnyViewState,
ctx: &mut Context,
element: <DynamicElement as ViewElement>::Mut<'el>,
) -> <DynamicElement as ViewElement>::Mut<'el>
fn dyn_teardown<'el>( &self, dyn_state: &mut AnyViewState, ctx: &mut Context, element: <DynamicElement as ViewElement>::Mut<'el>, ) -> <DynamicElement as ViewElement>::Mut<'el>
Type erased
View::teardown. Read moreSource§fn dyn_message(
&self,
dyn_state: &mut AnyViewState,
message: &mut MessageContext,
element: <DynamicElement as ViewElement>::Mut<'_>,
app_state: &mut State,
) -> MessageResult<Action>
fn dyn_message( &self, dyn_state: &mut AnyViewState, message: &mut MessageContext, element: <DynamicElement as ViewElement>::Mut<'_>, app_state: &mut State, ) -> MessageResult<Action>
Type erased
View::message.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
impl<V, State, Action> DomFragment<State, Action> for V
Source§impl<V, State, Action, N> DomView<State, Action> for V
impl<V, State, Action, N> DomView<State, Action> for V
type DomNode = N
Source§fn boxed(self) -> Box<AnyDomView<State, Action>>where
State: 'static,
Action: 'static,
Self: Sized,
fn boxed(self) -> Box<AnyDomView<State, Action>>where
State: 'static,
Action: 'static,
Self: Sized,
Returns a boxed type erased
AnyDomView Read moreSource§fn after_build<F>(self, callback: F) -> AfterBuild<State, Action, Self, F>
fn after_build<F>(self, callback: F) -> AfterBuild<State, Action, Self, F>
See
after_buildSource§fn after_rebuild<F>(self, callback: F) -> AfterRebuild<State, Action, Self, F>
fn after_rebuild<F>(self, callback: F) -> AfterRebuild<State, Action, Self, F>
See
after_rebuildSource§fn before_teardown<F>(
self,
callback: F,
) -> BeforeTeardown<State, Action, Self, F>
fn before_teardown<F>( self, callback: F, ) -> BeforeTeardown<State, Action, Self, F>
See
before_teardownSource§fn map_state<ParentState, F>(
self,
f: F,
) -> MapState<Self, F, ParentState, State, Action, ViewCtx>where
State: 'static,
ParentState: 'static,
Self: Sized,
F: Fn(&mut ParentState) -> &mut State + 'static,
fn map_state<ParentState, F>(
self,
f: F,
) -> MapState<Self, F, ParentState, State, Action, ViewCtx>where
State: 'static,
ParentState: 'static,
Self: Sized,
F: Fn(&mut ParentState) -> &mut State + 'static,
See
map_stateSource§fn map_action<ParentAction, F>(
self,
f: F,
) -> MapMessage<Self, State, ParentAction, Action, ViewCtx, impl Fn(&mut State, MessageResult<Action>) -> MessageResult<ParentAction> + 'static>where
State: 'static,
ParentAction: 'static,
Action: 'static,
Self: Sized,
F: Fn(&mut State, Action) -> ParentAction + 'static,
fn map_action<ParentAction, F>(
self,
f: F,
) -> MapMessage<Self, State, ParentAction, Action, ViewCtx, impl Fn(&mut State, MessageResult<Action>) -> MessageResult<ParentAction> + 'static>where
State: 'static,
ParentAction: 'static,
Action: 'static,
Self: Sized,
F: Fn(&mut State, Action) -> ParentAction + 'static,
See
map_action