[][src]Struct sarchive::scheduler::slurm::Slurm

pub struct Slurm {
    pub base: PathBuf,
    pub cluster: String,
}

Representation of the Slurm scheduler

Fields

base: PathBuf

The absolute path to the spool directory

cluster: String

Methods

impl Slurm[src]

pub fn new(base: &PathBuf, cluster: &str) -> Slurm[src]

Returns a new Slurm with the base path set.

Arguments

  • base: a PathBuf reference

Example


let base = PathBuf::from("/var/spool/slurm/hash.3/5678");

let slurm = Slurm::new(&base, "mycluster");

assert_eq!(slurm.base, base);

Trait Implementations

impl Scheduler for Slurm[src]

fn watch_locations(&self, _matches: &ArgMatches) -> Vec<PathBuf>[src]

Return a Vector with the locations that need to be watched.

The is the base path + hash.{0..9}

Arguments

  • _matches: reference the ArgMatches in case we pass command line options, which is not done atm.

fn create_job_info(&self, event_path: &Path) -> Option<Box<dyn JobInfo>>[src]

Returns a Box wrapping the actual job info data structure.App

Arguments

  • event_path: A `Path to the job directory that

Auto Trait Implementations

impl RefUnwindSafe for Slurm

impl Send for Slurm

impl Sync for Slurm

impl Unpin for Slurm

impl UnwindSafe for Slurm

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.