pub struct Dispatch<T> {
pub payload: T,
}Expand description
One unit of fan-out work — semantically equivalent to LangGraph’s
Send(node, payload). Carries the payload that a fanned-out
runnable will receive when scatter runs.
Fields§
§payload: TPayload the runnable will see.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Dispatch<T>where
T: Freeze,
impl<T> RefUnwindSafe for Dispatch<T>where
T: RefUnwindSafe,
impl<T> Send for Dispatch<T>where
T: Send,
impl<T> Sync for Dispatch<T>where
T: Sync,
impl<T> Unpin for Dispatch<T>where
T: Unpin,
impl<T> UnsafeUnpin for Dispatch<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Dispatch<T>where
T: 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