Struct oxidd_core::BroadcastContext
source · pub struct BroadcastContext {
pub index: u32,
pub num_threads: u32,
}Expand description
Context provided to workers by WorkerManager::broadcast()
Fields§
§index: u32Index of this worker (in range 0..num_threads)
num_threads: u32Number 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 copy 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