Trait slurm::JobStepRecordSharedFields
[−]
[src]
pub trait JobStepRecordSharedFields { fn end_time(&self) -> Option<DateTime<Utc>>; fn exit_code(&self) -> Option<i32>; fn max_vm_size(&self) -> Option<u64>; fn start_time(&self) -> Option<DateTime<Utc>>; fn state(&self) -> JobState; fn wallclock_duration(&self) -> Option<Duration>; }
A trait for accessing fields common to SlurmDB job records and step records.
Required Methods
fn end_time(&self) -> Option<DateTime<Utc>>
Get the job/step's end time, or None if it has not yet ended.
fn exit_code(&self) -> Option<i32>
Get the job/step's exit code, or None if it has not yet ended.
fn max_vm_size(&self) -> Option<u64>
Get the maximum "virtual memory size" of the job/step, in kibibytes.
This quantity is not available (i.e., the function returns None
)
until the job has finished running.
fn start_time(&self) -> Option<DateTime<Utc>>
Get the job/step's start time, or None if it has not yet started.
fn state(&self) -> JobState
Get the job/step's state.
fn wallclock_duration(&self) -> Option<Duration>
Get the wallclock time taken by the job/step: end time minus start time.
Returns None if the job/step has not yet completed (or even started).
Implementors
impl JobStepRecordSharedFields for JobRecord
impl JobStepRecordSharedFields for StepRecord