[−][src]Struct reactive_state::Listener
A weak reference to a callback function (usually Callback) which
is notified of changes to Store State, and
Events produced by the store.
See Callback for more information about how this is typically used.
Implementations
impl<State, Event> Listener<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]
fn as_listener(&self) -> Listener<State, Event>[src]
impl<State: Clone, Event: Clone> Clone for Listener<State, Event>[src]
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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
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> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut 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>,