pub enum NodeResult<Update> {
Update(Update),
Command(Command<Update>),
Interrupt(Interrupt),
}Expand description
The outcome of running a durable graph node.
Variants§
Update(Update)
A partial state update to merge through the reducer.
Command(Command<Update>)
A command that may update state and/or route explicitly.
Interrupt(Interrupt)
An interrupt that pauses execution until a resume command arrives.
Trait Implementations§
Source§impl<Update: Clone> Clone for NodeResult<Update>
impl<Update: Clone> Clone for NodeResult<Update>
Source§fn clone(&self) -> NodeResult<Update>
fn clone(&self) -> NodeResult<Update>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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<Update> Freeze for NodeResult<Update>where
Update: Freeze,
impl<Update> RefUnwindSafe for NodeResult<Update>where
Update: RefUnwindSafe,
impl<Update> Send for NodeResult<Update>where
Update: Send,
impl<Update> Sync for NodeResult<Update>where
Update: Sync,
impl<Update> Unpin for NodeResult<Update>where
Update: Unpin,
impl<Update> UnsafeUnpin for NodeResult<Update>where
Update: UnsafeUnpin,
impl<Update> UnwindSafe for NodeResult<Update>where
Update: UnwindSafe,
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