mahler-core 0.25.11

An automated job orchestration library that builds and executes dynamic workflows
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::context::Context;

use crate::result::Result;

/// Trait for types that can be initialized from a context
///
/// Types created from the context do not need to know the runtime state of the system and only use
/// the task configuration for initialization. They can be used on this crate to create a task
/// description, for instance.
pub trait FromContext: Sized {
    fn from_context(context: &Context) -> Result<Self>;
}