pub struct BroadcastContext {
pub index: u32,
pub num_threads: u32,
}
Expand description
Context provided to workers by WorkerPool::broadcast()
Fields§
§index: u32
Index of this worker (in range 0..num_threads
)
num_threads: u32
Number of threads receiving the broadcast
Trait Implementations§
Source§impl Clone for BroadcastContext
impl Clone for BroadcastContext
Source§fn clone(&self) -> BroadcastContext
fn clone(&self) -> BroadcastContext
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 moreSource§impl Debug for BroadcastContext
impl Debug for BroadcastContext
impl Copy for BroadcastContext
Auto Trait Implementations§
impl Freeze for BroadcastContext
impl RefUnwindSafe for BroadcastContext
impl Send for BroadcastContext
impl Sync for BroadcastContext
impl Unpin for BroadcastContext
impl UnwindSafe for BroadcastContext
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