Struct slurm::StepRecord
[−]
[src]
pub struct StepRecord(_);
Accounting information about a step within a job.
The following items in the Slurm API are not exposed in these Rust bindings:
ⓘThis example is not tested
pub struct slurmdb_step_rec_t { pub job_ptr: *mut slurmdb_job_rec_t, pub nnodes: u32, pub ntasks: u32, pub pid_str: *mut c_char, pub req_cpufreq_min: u32, pub req_cpufreq_max: u32, pub req_cpufreq_gov: u32, pub task_dist: u32, }
(The above listing omits fields that would be handled by the
JobStepRecordSharedFields
trait.)
Methods
impl StepRecord
[src]
pub fn step_id(&self) -> StepId
[src]
Get the step's ID.
pub fn step_name(&self) -> Cow<str>
[src]
Get the step's name.
Trait Implementations
impl Debug for StepRecord
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl UnownedFromSlurmPointer for StepRecord
[src]
fn unowned_from_slurm_pointer(ptr: *mut c_void) -> Self
[src]
Create an unowned wrapper object from a Slurm pointer.
impl JobStepRecordSharedFields for StepRecord
[src]
fn end_time(&self) -> Option<DateTime<Utc>>
[src]
Get the job/step's end time, or None if it has not yet ended.
fn exit_code(&self) -> Option<i32>
[src]
Get the job/step's exit code, or None if it has not yet ended.
fn max_vm_size(&self) -> Option<u64>
[src]
Get the maximum "virtual memory size" of the job/step, in kibibytes. Read more
fn start_time(&self) -> Option<DateTime<Utc>>
[src]
Get the job/step's start time, or None if it has not yet started.
fn state(&self) -> JobState
[src]
Get the job/step's state.
fn wallclock_duration(&self) -> Option<Duration>
[src]
Get the wallclock time taken by the job/step: end time minus start time. Read more