pub struct PreMapContext<'a> {
pub pool: &'a Arc<ResourcePool>,
pub params: &'a HashMap<String, String>,
pub dry_run: bool,
pub session_dir: Option<&'a Path>,
pub positions: Option<Arc<dyn AdapterPositions>>,
}Expand description
What a PreMapHook is given: the session as it stands after the
pre-map walk and before the first phase.
Fields§
§pool: &'a Arc<ResourcePool>The session’s resource pool. An adapter keeps what must outlive
a phase in the pool’s extensions
(crate::resource_pool::ResourcePool::extension).
params: &'a HashMap<String, String>The session’s params: the workload’s, overlaid by the command line’s.
dry_run: boolThe run executes no op against its target (dryrun=, or a
depth short of cycles). A hook opens nothing in that case.
session_dir: Option<&'a Path>The session’s directory.
positions: Option<Arc<dyn AdapterPositions>>The session’s checkpoint log, for an adapter’s own positions.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PreMapContext<'a>
impl<'a> !UnwindSafe for PreMapContext<'a>
impl<'a> Forget for PreMapContext<'a>
impl<'a> Freeze for PreMapContext<'a>where
&'a Arc<ResourcePool>: Freeze,
&'a HashMap<String, String>: Freeze,
&'a Path: Freeze,
*const ArcInner<dyn AdapterPositions> is !null: Freeze,
PhantomData<ArcInner<dyn AdapterPositions>>: Freeze,
impl<'a> Move for PreMapContext<'a>
impl<'a> Send for PreMapContext<'a>
impl<'a> Sync for PreMapContext<'a>
impl<'a> Unpin for PreMapContext<'a>
impl<'a> UnsafeUnpin for PreMapContext<'a>where
&'a Arc<ResourcePool>: UnsafeUnpin,
&'a HashMap<String, String>: UnsafeUnpin,
&'a Path: UnsafeUnpin,
*const ArcInner<dyn AdapterPositions> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn AdapterPositions>>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more