pub struct ExecutionAtom {
id: Option<ExecutionAtomId>,
executor: Arc<dyn AnyHttpExecutor>,
children: CheapVec<Arc<ExecutionAtom>>,
}Expand description
Execution atom (node) for composing the tree-like structure.
Fields§
§id: Option<ExecutionAtomId>Unique identifier for each executor. NOTE: if the id is not set the parent node won’t be able to select this step if it has multiple children.
executor: Arc<dyn AnyHttpExecutor>Establishes the execute handler.
children: CheapVec<Arc<ExecutionAtom>>All children of the current node.
Implementations§
Source§impl ExecutionAtom
impl ExecutionAtom
pub const fn new( id: Option<ExecutionAtomId>, executor: Arc<dyn AnyHttpExecutor>, children: CheapVec<Arc<ExecutionAtom>>, ) -> ExecutionAtom
Source§impl ExecutionAtom
impl ExecutionAtom
Sourcepub fn id(&self) -> &Option<ExecutionAtomId>
pub fn id(&self) -> &Option<ExecutionAtomId>
Unique identifier for each executor. NOTE: if the id is not set the parent node won’t be able to select this step if it has multiple children.
Sourcepub fn executor(&self) -> &Arc<dyn AnyHttpExecutor>
pub fn executor(&self) -> &Arc<dyn AnyHttpExecutor>
Establishes the execute handler.
Sourcepub fn children(&self) -> &CheapVec<Arc<ExecutionAtom>>
pub fn children(&self) -> &CheapVec<Arc<ExecutionAtom>>
All children of the current node.
Source§impl ExecutionAtom
impl ExecutionAtom
Sourcepub fn id_mut(&mut self) -> &mut Option<ExecutionAtomId>
pub fn id_mut(&mut self) -> &mut Option<ExecutionAtomId>
Unique identifier for each executor. NOTE: if the id is not set the parent node won’t be able to select this step if it has multiple children.
Sourcepub fn executor_mut(&mut self) -> &mut Arc<dyn AnyHttpExecutor>
pub fn executor_mut(&mut self) -> &mut Arc<dyn AnyHttpExecutor>
Establishes the execute handler.
Sourcepub fn children_mut(&mut self) -> &mut CheapVec<Arc<ExecutionAtom>>
pub fn children_mut(&mut self) -> &mut CheapVec<Arc<ExecutionAtom>>
All children of the current node.
Source§impl ExecutionAtom
impl ExecutionAtom
Sourcepub fn execute<'a>(
&'a self,
cx: PipelineCx,
db_conns: DbConns,
) -> BoxFuture<'a, Result<PipelineCx, RequestError>>
pub fn execute<'a>( &'a self, cx: PipelineCx, db_conns: DbConns, ) -> BoxFuture<'a, Result<PipelineCx, RequestError>>
Given an execution atom execute it and execute all it’s children recursively.
Trait Implementations§
Source§impl Clone for ExecutionAtom
impl Clone for ExecutionAtom
Source§fn clone(&self) -> ExecutionAtom
fn clone(&self) -> ExecutionAtom
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExecutionAtom
impl Debug for ExecutionAtom
Source§impl<'de> Deserialize<'de> for ExecutionAtom
impl<'de> Deserialize<'de> for ExecutionAtom
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl<T: AnyHttpExecutor> From<Arc<T>> for ExecutionAtom
impl<T: AnyHttpExecutor> From<Arc<T>> for ExecutionAtom
Auto Trait Implementations§
impl !RefUnwindSafe for ExecutionAtom
impl !UnwindSafe for ExecutionAtom
impl Freeze for ExecutionAtom
impl Send for ExecutionAtom
impl Sync for ExecutionAtom
impl Unpin for ExecutionAtom
impl UnsafeUnpin for ExecutionAtom
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Decode for T
impl<T> Decode for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Encode for T
impl<T> Encode for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<D> OwoColorize for D
impl<D> OwoColorize for D
§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::fg] or
a color-specific method, such as [OwoColorize::green], Read more§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
OwoColorize::bg] or
a color-specific method, such as [OwoColorize::on_yellow], Read more