pub struct PlanContext<'a> {
pub profile: &'a ProfileName,
pub root: &'a AppRoot,
pub config: &'a Config,
pub args: &'a [OsString],
pub path_var: Option<&'a OsStr>,
}Expand description
Everything plan() needs. The agent id is always metadata().id.
Fields§
§profile: &'a ProfileName§root: &'a AppRoot§config: &'a Config§args: &'a [OsString]§path_var: Option<&'a OsStr>Trait Implementations§
Source§impl<'a> Clone for PlanContext<'a>
impl<'a> Clone for PlanContext<'a>
Source§fn clone(&self) -> PlanContext<'a>
fn clone(&self) -> PlanContext<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for PlanContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for PlanContext<'a>
impl<'a> RefUnwindSafe for PlanContext<'a>
impl<'a> Send for PlanContext<'a>
impl<'a> Sync for PlanContext<'a>
impl<'a> Unpin for PlanContext<'a>
impl<'a> UnsafeUnpin for PlanContext<'a>
impl<'a> UnwindSafe for PlanContext<'a>
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