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

Get the job/step's end time, or None if it has not yet ended.

Get the job/step's exit code, or None if it has not yet ended.

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.

Get the job/step's start time, or None if it has not yet started.

Get the job/step's state.

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