pub struct ProcessBundle<TCommand = AnyValue, TState = AnyValue, TEvent = AnyValue, TEffect = AnyValue> {
pub command: Node<ProcessCommand<TCommand>>,
pub state: Node<TState>,
pub events: Node<ProcessEvent<TEvent>>,
pub audit: Node<ProcessAuditRecord>,
pub effect_request: Node<ProcessEffectRequest<TEffect>>,
pub status: Node<ProcessStatus>,
pub error: Node<ProcessError<TCommand>>,
pub cursor: Node<ProcessCursor>,
/* private fields */
}Expand description
ProcessBundle data container.
Fields§
§command: Node<ProcessCommand<TCommand>>command field for command.
state: Node<TState>state field for state.
events: Node<ProcessEvent<TEvent>>events field for events.
audit: Node<ProcessAuditRecord>audit field for audit.
effect_request: Node<ProcessEffectRequest<TEffect>>effect_request field for effect request.
status: Node<ProcessStatus>status field for status.
error: Node<ProcessError<TCommand>>error field for error.
cursor: Node<ProcessCursor>cursor field for cursor.
Implementations§
Source§impl<TCommand: Clone + 'static, TState, TEvent, TEffect> ProcessBundle<TCommand, TState, TEvent, TEffect>
impl<TCommand: Clone + 'static, TState, TEvent, TEffect> ProcessBundle<TCommand, TState, TEvent, TEffect>
Sourcepub fn dispatch(
&self,
command: ProcessCommand<TCommand>,
) -> ProcessCommand<TCommand>
pub fn dispatch( &self, command: ProcessCommand<TCommand>, ) -> ProcessCommand<TCommand>
Updates or reads dispatch.
Trait Implementations§
Source§impl<TCommand: Clone, TState: Clone, TEvent: Clone, TEffect: Clone> Clone for ProcessBundle<TCommand, TState, TEvent, TEffect>
impl<TCommand: Clone, TState: Clone, TEvent: Clone, TEffect: Clone> Clone for ProcessBundle<TCommand, TState, TEvent, TEffect>
Source§fn clone(&self) -> ProcessBundle<TCommand, TState, TEvent, TEffect>
fn clone(&self) -> ProcessBundle<TCommand, TState, TEvent, TEffect>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<TCommand, TState, TEvent, TEffect> Freeze for ProcessBundle<TCommand, TState, TEvent, TEffect>
impl<TCommand = Rc<dyn Any>, TState = Rc<dyn Any>, TEvent = Rc<dyn Any>, TEffect = Rc<dyn Any>> !RefUnwindSafe for ProcessBundle<TCommand, TState, TEvent, TEffect>
impl<TCommand = Rc<dyn Any>, TState = Rc<dyn Any>, TEvent = Rc<dyn Any>, TEffect = Rc<dyn Any>> !Send for ProcessBundle<TCommand, TState, TEvent, TEffect>
impl<TCommand = Rc<dyn Any>, TState = Rc<dyn Any>, TEvent = Rc<dyn Any>, TEffect = Rc<dyn Any>> !Sync for ProcessBundle<TCommand, TState, TEvent, TEffect>
impl<TCommand, TState, TEvent, TEffect> Unpin for ProcessBundle<TCommand, TState, TEvent, TEffect>
impl<TCommand, TState, TEvent, TEffect> UnsafeUnpin for ProcessBundle<TCommand, TState, TEvent, TEffect>
impl<TCommand = Rc<dyn Any>, TState = Rc<dyn Any>, TEvent = Rc<dyn Any>, TEffect = Rc<dyn Any>> !UnwindSafe for ProcessBundle<TCommand, TState, TEvent, TEffect>
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