pub struct Assemble { /* private fields */ }
Expand description
Provides a wrapper around the assemble instance that’s running this build.
Implementations§
Source§impl Assemble
impl Assemble
Sourcepub fn new(start: StartParameter) -> Assemble
pub fn new(start: StartParameter) -> Assemble
Create a new assemble instance
Sourcepub fn set_execution_graph(
&mut self,
graph: &ExecutionGraph,
) -> Result<(), PayloadError<ProjectError>>
pub fn set_execution_graph( &mut self, graph: &ExecutionGraph, ) -> Result<(), PayloadError<ProjectError>>
Makes the execution graph available
Sourcepub fn add_listener<T>(
&mut self,
listener: T,
) -> Result<(), PayloadError<ProjectError>>
pub fn add_listener<T>( &mut self, listener: T, ) -> Result<(), PayloadError<ProjectError>>
Add a listener to the inner freight
pub fn add_task_execution_listener<T>(
&mut self,
listener: T,
) -> Result<(), PayloadError<ProjectError>>where
T: TaskExecutionListener + 'static,
pub fn add_task_execution_graph_listener<T>(
&mut self,
listener: T,
) -> Result<(), PayloadError<ProjectError>>where
T: TaskExecutionGraphListener + 'static,
pub fn add_build_listener<T>(
&mut self,
listener: T,
) -> Result<(), PayloadError<ProjectError>>where
T: BuildListener + 'static,
pub fn settings_evaluated<S>(
&mut self,
settings: S,
) -> Result<(), PayloadError<ProjectError>>where
S: SettingsAware,
Sourcepub fn assemble_version(&self) -> &Version
pub fn assemble_version(&self) -> &Version
Gets the current version of assemble
Sourcepub fn start_parameter(&self) -> &StartParameter
pub fn start_parameter(&self) -> &StartParameter
Gets the start parameters used to start this build
pub fn current_dir(&self) -> &Path
pub fn project_dir(&self) -> PathBuf
pub fn properties(&self) -> &HashMap<String, Option<String>>
Trait Implementations§
Source§impl AssembleAware for Assemble
impl AssembleAware for Assemble
Source§fn with_assemble<F, R>(&self, func: F) -> R
fn with_assemble<F, R>(&self, func: F) -> R
Gets this Assemble
instance.
Source§fn with_assemble_mut<F, R>(&mut self, func: F) -> R
fn with_assemble_mut<F, R>(&mut self, func: F) -> R
Get the assemble instance this value is aware of as a mutable reference
fn start_parameter(&self) -> StartParameter
Source§impl PluginAware for Assemble
impl PluginAware for Assemble
Source§fn plugin_manager(&self) -> &PluginManager<Assemble>
fn plugin_manager(&self) -> &PluginManager<Assemble>
Gets a reference to the plugin manager for this value.
Source§fn plugin_manager_mut(&mut self) -> &mut PluginManager<Assemble>
fn plugin_manager_mut(&mut self) -> &mut PluginManager<Assemble>
Gets a mutable reference to the plugin manager for this value.
Source§fn apply_plugin<P>(&mut self) -> Result<(), PayloadError<ProjectError>>where
P: Plugin<Self>,
fn apply_plugin<P>(&mut self) -> Result<(), PayloadError<ProjectError>>where
P: Plugin<Self>,
Apply a plugin to this.
Auto Trait Implementations§
impl !Freeze for Assemble
impl !RefUnwindSafe for Assemble
impl Send for Assemble
impl Sync for Assemble
impl Unpin for Assemble
impl !UnwindSafe for Assemble
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
Source§impl<T> InstanceOf for T
impl<T> InstanceOf for T
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