pub struct DispatchRuntime<S, A: Action, St: DispatchStore<S, A> = Store<S, A>> { /* private fields */ }Expand description
Runtime helper for simple stores (no effects).
Implementations§
Source§impl<S: 'static, A: Action> DispatchRuntime<S, A, Store<S, A>>
impl<S: 'static, A: Action> DispatchRuntime<S, A, Store<S, A>>
Source§impl<S: 'static, A: Action, St: DispatchStore<S, A>> DispatchRuntime<S, A, St>
impl<S: 'static, A: Action, St: DispatchStore<S, A>> DispatchRuntime<S, A, St>
Sourcepub fn from_store(store: St) -> Self
pub fn from_store(store: St) -> Self
Create a runtime from an existing store.
Sourcepub fn with_debug(self, debug: DebugLayer<A>) -> Selfwhere
S: DebugState,
A: ActionParams,
pub fn with_debug(self, debug: DebugLayer<A>) -> Selfwhere
S: DebugState,
A: ActionParams,
Attach a debug layer.
Sourcepub fn with_event_poller(self, config: PollerConfig) -> Self
pub fn with_event_poller(self, config: PollerConfig) -> Self
Configure event polling behavior.
Sourcepub fn action_tx(&self) -> UnboundedSender<A>
pub fn action_tx(&self) -> UnboundedSender<A>
Clone the action sender.
Auto Trait Implementations§
impl<S, A, St> Freeze for DispatchRuntime<S, A, St>where
St: Freeze,
impl<S, A, St = Store<S, A>> !RefUnwindSafe for DispatchRuntime<S, A, St>
impl<S, A, St = Store<S, A>> !Send for DispatchRuntime<S, A, St>
impl<S, A, St = Store<S, A>> !Sync for DispatchRuntime<S, A, St>
impl<S, A, St> Unpin for DispatchRuntime<S, A, St>
impl<S, A, St = Store<S, A>> !UnwindSafe for DispatchRuntime<S, A, St>
Blanket Implementations§
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
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>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more