pub struct ExecutorContext<T>{ /* private fields */ }Expand description
Context passed to the executing closure to provide additional information and access to the ProQue.
Implementations§
Source§impl<T> ExecutorContext<T>
impl<T> ExecutorContext<T>
Sourcepub fn new(pro_que: ProQue, task_id: usize, sender: OCLStreamSender<T>) -> Self
pub fn new(pro_que: ProQue, task_id: usize, sender: OCLStreamSender<T>) -> Self
Creates a new executor context.
Sourcepub fn sender(&self) -> &OCLStreamSender<T>
pub fn sender(&self) -> &OCLStreamSender<T>
Returns the Sender
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ExecutorContext<T>
impl<T> RefUnwindSafe for ExecutorContext<T>
impl<T> Send for ExecutorContext<T>
impl<T> Sync for ExecutorContext<T>
impl<T> Unpin for ExecutorContext<T>
impl<T> UnwindSafe for ExecutorContext<T>
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