Struct slurm::JobRecord [] [src]

pub struct JobRecord(_);

Accounting information about a job.

The following items in the Slurm API are not exposed in these Rust bindings:

This example is not tested
pub struct slurmdb_job_rec_t {
    pub account: *mut c_char,
    pub admin_comment: *mut c_char,
    pub alloc_gres: *mut c_char,
    pub alloc_nodes: u32,
    pub array_max_tasks: u32,
    pub array_task_id: u32,
    pub array_task_str: *mut c_char,
    pub associd: u32,
    pub blockid: *mut c_char,
    pub cluster: *mut c_char,
    pub derived_ec: u32,
    pub derived_es: *mut c_char,
    pub first_step_ptr: *mut c_void,
    pub gid: u32,
    pub lft: u32,
    pub mcs_label: *mut c_char,
    pub partition: *mut c_char,
    pub pack_job_id: u32,
    pub pack_job_offset: u32,
    pub priority: u32,
    pub qosid: u32,
    pub req_cpus: u32,
    pub req_gres: *mut c_char,
    pub req_mem: u64,
    pub resvid: u32,
    pub resv_name: *mut c_char,
    pub show_full: u32,
    pub steps: List,
    pub track_steps: u16,
    pub tres_req_str: *mut c_char,
    pub uid: u32,
    pub used_gres: *mut c_char,
    pub user: *mut c_char,
    pub wckey: *mut c_char,
    pub wckeyid: u32,
    pub work_dir: *mut c_char,
}

(The above listing omits fields that would be handled by the JobStepRecordSharedFields trait.)

Methods

impl JobRecord
[src]

[src]

Get the unique identifier of the array group this job belonged to.

Returns None if this job was not part of an array.

[src]

Get the job's "eligible" time, or None if the job is not yet eligible to run.

[src]

Get the job's ID number.

[src]

Get the job's name.

[src]

Get the job's submission time.

[src]

Get the wallclock time spent waiting for the job to become eligible, or None if the job has not yet become eligible to run.

[src]

Get the job's time limit in minutes.

[src]

Get the wallclock time spent waiting for the job to start, or None if the job has not yet started.

This includes time that the job spent waiting to become eligible to run.

[src]

Steps.

Trait Implementations

impl Debug for JobRecord
[src]

[src]

Formats the value using the given formatter. Read more

impl UnownedFromSlurmPointer for JobRecord
[src]

[src]

Create an unowned wrapper object from a Slurm pointer.

impl JobStepRecordSharedFields for JobRecord
[src]

[src]

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

[src]

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

[src]

Get the maximum "virtual memory size" of the job/step, in kibibytes. Read more

[src]

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

[src]

Get the job/step's state.

[src]

Get the wallclock time taken by the job/step: end time minus start time. Read more

Auto Trait Implementations

impl !Send for JobRecord

impl !Sync for JobRecord