pub struct ActionExecutor;Expand description
Action executor
Executes behavior actions and returns structured results describing the effect that should be applied to the request/response pipeline.
Implementations§
Source§impl ActionExecutor
impl ActionExecutor
Sourcepub fn execute_action(&self, action: &BehaviorAction) -> Result<ActionResult>
pub fn execute_action(&self, action: &BehaviorAction) -> Result<ActionResult>
Execute an action and return a structured result
Sourcepub fn execute(&self, action: &BehaviorAction) -> Result<String>
pub fn execute(&self, action: &BehaviorAction) -> Result<String>
Execute an action and return a description string
This is a convenience wrapper around execute_action
for callers that only need a log-friendly description.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ActionExecutor
impl RefUnwindSafe for ActionExecutor
impl Send for ActionExecutor
impl Sync for ActionExecutor
impl Unpin for ActionExecutor
impl UnsafeUnpin for ActionExecutor
impl UnwindSafe for ActionExecutor
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