Struct reactive_state::Listener [−][src]
pub struct Listener<State, Event>(_);
Expand description
Implementations
impl<State, Event> Listener<State, Event>
[src]
impl<State, Event> Listener<State, Event>
[src]pub fn as_callback(&self) -> Option<Callback<State, Event>>
[src]
pub fn as_callback(&self) -> Option<Callback<State, Event>>
[src]Attempt to upgrade the weak reference in this listener to a
Callback, otherwise if unable to, returns None
.
Trait Implementations
impl<State, Event> AsListener<State, Event> for Listener<State, Event>
[src]
impl<State, Event> AsListener<State, Event> for Listener<State, Event>
[src]fn as_listener(&self) -> Listener<State, Event>
[src]
fn as_listener(&self) -> Listener<State, Event>
[src]Produce a Listener, a weak reference to this callback.
Auto Trait Implementations
impl<State, Event> !RefUnwindSafe for Listener<State, Event>
impl<State, Event> !Send for Listener<State, Event>
impl<State, Event> !Sync for Listener<State, Event>
impl<State, Event> Unpin for Listener<State, Event>
impl<State, Event> !UnwindSafe for Listener<State, Event>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T, V> IntoOptPropValue<V> for T where
T: IntoPropValue<Option<V>>,
[src]
impl<T, V> IntoOptPropValue<V> for T where
T: IntoPropValue<Option<V>>,
[src]pub fn into_opt_prop_value(self) -> Option<V>
[src]
pub fn into_opt_prop_value(self) -> Option<V>
[src]Convert self
to an optional value of a Properties
struct.
impl<T> IntoPropValue<Option<T>> for T
[src]
impl<T> IntoPropValue<Option<T>> for T
[src]pub fn into_prop_value(self) -> Option<T>
[src]
pub fn into_prop_value(self) -> Option<T>
[src]Convert self
to a value of a Properties
struct.
impl<T> IntoPropValue<T> for T
[src]
impl<T> IntoPropValue<T> for T
[src]pub fn into_prop_value(self) -> T
[src]
pub fn into_prop_value(self) -> T
[src]Convert self
to a value of a Properties
struct.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> Any for T where
T: Any,
T: Any,
impl<T> CloneAny for T where
T: Any + Clone,
T: Any + Clone,