pub struct FanOut {
pub context: HashMap<String, String>,
}Expand description
Distributes a single input context to N parallel tasks.
FanOut owns the initial context key-value pairs that will be passed
(via Arc) to every spawned task.
Fields§
§context: HashMap<String, String>Shared context forwarded to all tasks.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FanOut
impl RefUnwindSafe for FanOut
impl Send for FanOut
impl Sync for FanOut
impl Unpin for FanOut
impl UnsafeUnpin for FanOut
impl UnwindSafe for FanOut
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