pub struct Context<'a, C>{
pub clocks: &'a TaskClocks,
pub config: &'a C::Config,
pub config_aux: &'a <C::Config as Config>::Aux,
pub pulse: &'a CodeletPulse,
}Expand description
Context argument used for Codelet start, step and stop functions
Fields§
§clocks: &'a TaskClocksAccess to various clocks
config: &'a C::ConfigThe configuration used for this instance
config_aux: &'a <C::Config as Config>::AuxAdditional information about configuration
pulse: &'a CodeletPulseStatistics about codelet execution
Auto Trait Implementations§
impl<'a, C> Freeze for Context<'a, C>where
C: ?Sized,
impl<'a, C> RefUnwindSafe for Context<'a, C>where
<C as Codelet>::Config: RefUnwindSafe,
<<C as Codelet>::Config as Config>::Aux: RefUnwindSafe,
C: ?Sized,
impl<'a, C> Send for Context<'a, C>
impl<'a, C> Sync for Context<'a, C>
impl<'a, C> Unpin for Context<'a, C>where
C: ?Sized,
impl<'a, C> UnwindSafe for Context<'a, C>where
<C as Codelet>::Config: RefUnwindSafe,
<<C as Codelet>::Config as Config>::Aux: RefUnwindSafe,
C: ?Sized,
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