pub struct Added<T, W> { /* private fields */ }
Expand description
This Controller
widget responds to LifeCycle::WidgetAdded
event
with the provided closure. Pass this and a child widget to ControllerHost
to respond to the event when the child widget is added to the widget tree.
This is also available, for convenience, as an on_added
method
via WidgetExt
.
Implementations§
Trait Implementations§
source§impl<T: Data, W: Widget<T>> Controller<T, W> for Added<T, W>
impl<T: Data, W: Widget<T>> Controller<T, W> for Added<T, W>
Auto Trait Implementations§
impl<T, W> !RefUnwindSafe for Added<T, W>
impl<T, W> !Send for Added<T, W>
impl<T, W> !Sync for Added<T, W>
impl<T, W> Unpin for Added<T, W>
impl<T, W> !UnwindSafe for Added<T, W>
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.