Struct webui::UseReducerHandle
source · [−]pub struct UseReducerHandle<T>where
T: Reducible,{ /* private fields */ }Expand description
State handle for use_reducer and use_reducer_eq hook
Implementations
sourceimpl<T> UseReducerHandle<T>where
T: Reducible,
impl<T> UseReducerHandle<T>where
T: Reducible,
sourcepub fn dispatch(&self, value: <T as Reducible>::Action)
pub fn dispatch(&self, value: <T as Reducible>::Action)
Dispatch the given action to the reducer.
sourcepub fn dispatcher(&self) -> UseReducerDispatcher<T>
pub fn dispatcher(&self) -> UseReducerDispatcher<T>
Returns the dispatcher of the current state.
Trait Implementations
sourceimpl<T> Clone for UseReducerHandle<T>where
T: Reducible,
impl<T> Clone for UseReducerHandle<T>where
T: Reducible,
sourcefn clone(&self) -> UseReducerHandle<T>
fn clone(&self) -> UseReducerHandle<T>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl<T> Debug for UseReducerHandle<T>where
T: Reducible + Debug,
impl<T> Debug for UseReducerHandle<T>where
T: Reducible + Debug,
sourceimpl<T> Deref for UseReducerHandle<T>where
T: Reducible,
impl<T> Deref for UseReducerHandle<T>where
T: Reducible,
sourceimpl<T> PartialEq<UseReducerHandle<T>> for UseReducerHandle<T>where
T: Reducible + PartialEq<T>,
impl<T> PartialEq<UseReducerHandle<T>> for UseReducerHandle<T>where
T: Reducible + PartialEq<T>,
sourcefn eq(&self, rhs: &UseReducerHandle<T>) -> bool
fn eq(&self, rhs: &UseReducerHandle<T>) -> bool
Auto Trait Implementations
impl<T> !RefUnwindSafe for UseReducerHandle<T>
impl<T> !Send for UseReducerHandle<T>
impl<T> !Sync for UseReducerHandle<T>
impl<T> Unpin for UseReducerHandle<T>
impl<T> !UnwindSafe for UseReducerHandle<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourceimpl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
sourcefn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.sourceimpl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
sourcefn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T>where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;