Struct PipelineJobCtx

Source
pub struct PipelineJobCtx<'a> { /* private fields */ }

Implementations§

Source§

impl PipelineJobCtx<'_>

Source

pub fn new_done_handle(&mut self) -> WriteVar<SideEffect>

Create a new WriteVar<SideEffect> anchored to the pipeline job.

Source

pub fn use_artifact(&mut self, artifact: &UseArtifact) -> ReadVar<PathBuf>

Claim that this job will use this artifact, obtaining a path to a folder with the artifact’s contents.

Source

pub fn publish_artifact( &mut self, artifact: PublishArtifact, ) -> ReadVar<PathBuf>

Claim that this job will publish this artifact, obtaining a path to a fresh, empty folder which will be published as the specific artifact at the end of the job.

Source

pub fn use_parameter<T>(&mut self, param: UseParameter<T>) -> ReadVar<T>

Obtain a ReadVar<T> corresponding to a pipeline parameter which is specified at runtime.

Source

pub fn new_parameter_bool( &mut self, name: impl AsRef<str>, description: impl AsRef<str>, kind: ParameterKind, default: Option<bool>, ) -> ReadVar<bool>

Shortcut which allows defining a bool pipeline parameter within a Job.

To share a single parameter between multiple jobs, don’t use this method

Source

pub fn new_parameter_num( &mut self, name: impl AsRef<str>, description: impl AsRef<str>, kind: ParameterKind, default: Option<i64>, possible_values: Option<Vec<i64>>, ) -> ReadVar<i64>

Shortcut which allows defining a number pipeline parameter within a Job.

To share a single parameter between multiple jobs, don’t use this method

Source

pub fn new_parameter_string( &mut self, name: impl AsRef<str>, description: impl AsRef<str>, kind: ParameterKind, default: Option<String>, possible_values: Option<Vec<String>>, ) -> ReadVar<String>

Shortcut which allows defining a string pipeline parameter within a Job.

To share a single parameter between multiple jobs, don’t use this method

Auto Trait Implementations§

§

impl<'a> Freeze for PipelineJobCtx<'a>

§

impl<'a> !RefUnwindSafe for PipelineJobCtx<'a>

§

impl<'a> !Send for PipelineJobCtx<'a>

§

impl<'a> !Sync for PipelineJobCtx<'a>

§

impl<'a> Unpin for PipelineJobCtx<'a>

§

impl<'a> !UnwindSafe for PipelineJobCtx<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.