pub struct Empty;Expand description
A task that has no actions by default.
Trait Implementations§
Source§impl InitializeTask for Empty
impl InitializeTask for Empty
Source§fn initialize(_task: &mut Executable<T>, _project: &Project) -> ProjectResult
fn initialize(_task: &mut Executable<T>, _project: &Project) -> ProjectResult
Initialize tasks
Source§impl Task for Empty
impl Task for Empty
Source§fn task_action(_task: &mut Executable<Self>, _project: &Project) -> BuildResult
fn task_action(_task: &mut Executable<Self>, _project: &Project) -> BuildResult
The action that the task performs
Source§impl TaskIO for Empty
impl TaskIO for Empty
Source§fn configure_io(_task: &mut Executable<T>) -> ProjectResult
fn configure_io(_task: &mut Executable<T>) -> ProjectResult
During the initialization of the task, configures the inputs and outputs of the task.
Source§fn recover_outputs(&mut self, _output: &Output) -> ProjectResult
fn recover_outputs(&mut self, _output: &Output) -> ProjectResult
Recovers outputs from previous run if up-to-date
Auto Trait Implementations§
impl Freeze for Empty
impl RefUnwindSafe for Empty
impl Send for Empty
impl Sync for Empty
impl Unpin for Empty
impl UnsafeUnpin for Empty
impl UnwindSafe for Empty
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> CreateTask for T
impl<T> CreateTask for T
Source§fn new(_: &TaskId, _: &Project) -> Result<T, PayloadError<ProjectError>>
fn new(_: &TaskId, _: &Project) -> Result<T, PayloadError<ProjectError>>
Creates a new task. The using_id is the id of the task that’s being created.
Source§fn description() -> String
fn description() -> String
The default description for a Task
Source§fn options_declarations() -> Option<OptionDeclarations>
fn options_declarations() -> Option<OptionDeclarations>
Gets an optional flags for this task. Read more
Source§fn try_set_from_decoder(
&mut self,
_decoder: &OptionsDecoder<'_>,
) -> ProjectResult<()>
fn try_set_from_decoder( &mut self, _decoder: &OptionsDecoder<'_>, ) -> ProjectResult<()>
Try to get values from a decoder. 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