pub struct ShellPackage { /* private fields */ }Implementations§
Source§impl ShellPackage
impl ShellPackage
Sourcepub fn from_config(config: &ShellConfig) -> Result<Self>
pub fn from_config(config: &ShellConfig) -> Result<Self>
Build the package from an explicit [shell] config, bypassing the
engine config lookup.
Trait Implementations§
Source§impl ActPackage for ShellPackage
impl ActPackage for ShellPackage
Source§fn definition() -> ActPackageDefinition
fn definition() -> ActPackageDefinition
get package meta definition
Source§fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
params: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<Option<Vars>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 Context,
params: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<Option<Vars>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
executing with task context
Source§fn start<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_rt: &'life1 Arc<Runtime>,
_params: &'life2 Value,
_options: &'life3 Vars,
) -> Pin<Box<dyn Future<Output = Result<Option<Vars>, ActError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
fn start<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_rt: &'life1 Arc<Runtime>,
_params: &'life2 Value,
_options: &'life3 Vars,
) -> Pin<Box<dyn Future<Output = Result<Option<Vars>, ActError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
start with non-context, such as workflow event
Source§impl Clone for ShellPackage
impl Clone for ShellPackage
Source§fn clone(&self) -> ShellPackage
fn clone(&self) -> ShellPackage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ShellPackage
impl RefUnwindSafe for ShellPackage
impl Send for ShellPackage
impl Sync for ShellPackage
impl Unpin for ShellPackage
impl UnsafeUnpin for ShellPackage
impl UnwindSafe for ShellPackage
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