pub struct Interface { /* private fields */ }
Expand description
A simple CLI interface for the barley
workflow engine.
This interface is not yet complete, but should be used instead
of the Context
struct from the barley-runtime
crate,
since it will require no extra modifications when stable.
Implementations§
Source§impl Interface
impl Interface
Sourcepub async fn add_action<A: Action + 'static>(&self, action: A) -> ActionObject
pub async fn add_action<A: Action + 'static>(&self, action: A) -> ActionObject
Add an action to the context.
Sourcepub async fn update_action(&self, action: ActionObject)
pub async fn update_action(&self, action: ActionObject)
Update an ActionObject.
Sourcepub async fn get_output(&self, action: ActionObject) -> Option<ActionOutput>
pub async fn get_output(&self, action: ActionObject) -> Option<ActionOutput>
Gets the output of the action.
This method will return None
if the action
has not been run yet. See Context::get_output
for more information.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Interface
impl !RefUnwindSafe for Interface
impl Send for Interface
impl Sync for Interface
impl Unpin for Interface
impl !UnwindSafe for Interface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more