pub struct Job { /* private fields */ }
Expand description
A running Gitlab Job
Implementations§
Source§impl Job
impl Job
Sourcepub fn trace<D: AsRef<[u8]>>(&self, data: D)
pub fn trace<D: AsRef<[u8]>>(&self, data: D)
Sent data to the gitlab log
Normally outputln!
should be used. This function directly puts data in the queue for
the gitlab log and side-steps the tracing infrastructure
Sourcepub fn variable(&self, key: &str) -> Option<Variable<'_>>
pub fn variable(&self, key: &str) -> Option<Variable<'_>>
Get the variable matching the given key
Sourcepub fn variables(&self) -> impl Iterator<Item = Variable<'_>>
pub fn variables(&self) -> impl Iterator<Item = Variable<'_>>
Get an iterator over all the variables associated with this job.
Sourcepub fn dependencies(&self) -> impl Iterator<Item = Dependency<'_>>
pub fn dependencies(&self) -> impl Iterator<Item = Dependency<'_>>
Get an iterator over the job dependencies
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Job
impl !RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl !UnwindSafe for Job
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