pub struct Entrypoint {
pub config: EntrypointConfig,
pub invoke_fn: Box<dyn Fn(Value) -> Pin<Box<dyn Future<Output = Result<Value, SynapticError>> + Send>> + Send + Sync>,
}Expand description
An entrypoint wrapping an async function as a runnable workflow.
The invoke_fn field is a type-erased async function (Value -> Result<Value, SynapticError>).
Fields§
§config: EntrypointConfig§invoke_fn: Box<dyn Fn(Value) -> Pin<Box<dyn Future<Output = Result<Value, SynapticError>> + Send>> + Send + Sync>Implementations§
Source§impl Entrypoint
impl Entrypoint
Auto Trait Implementations§
impl Freeze for Entrypoint
impl !RefUnwindSafe for Entrypoint
impl Send for Entrypoint
impl Sync for Entrypoint
impl Unpin for Entrypoint
impl UnsafeUnpin for Entrypoint
impl !UnwindSafe for Entrypoint
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