pub struct CodePackage { /* private fields */ }Trait Implementations§
Source§impl ActPackage for CodePackage
impl ActPackage for CodePackage
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 idempotent() -> boolwhere
Self: Sized,
fn idempotent() -> boolwhere
Self: Sized,
Whether executing this package twice with the same effect key is
provably harmless. Read more
Source§fn prepare_params<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 Context,
params: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, ActError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn prepare_params<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 Context,
params: Value,
) -> Pin<Box<dyn Future<Output = Result<Value, ActError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Normalize the resolved params before they are sent to the client (an
Irq act) or handed to Self::execute (a Func act). The default
returns them unchanged. Read moreSource§fn start<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_rt: &'life1 dyn ActPackageRuntime,
_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 dyn ActPackageRuntime,
_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 CodePackage
impl Clone for CodePackage
Auto Trait Implementations§
impl Forget for CodePackage
impl Freeze for CodePackage
impl Move for CodePackage
impl RefUnwindSafe for CodePackage
impl Send for CodePackage
impl Sync for CodePackage
impl Unpin for CodePackage
impl UnsafeUnpin for CodePackage
impl UnwindSafe for CodePackage
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