Struct zen_engine::handler::decision::DecisionHandler
source · pub struct DecisionHandler<L: DecisionLoader, A: CustomNodeAdapter> { /* private fields */ }Implementations§
source§impl<L: DecisionLoader, A: CustomNodeAdapter> DecisionHandler<L, A>
impl<L: DecisionLoader, A: CustomNodeAdapter> DecisionHandler<L, A>
pub fn new( trace: bool, max_depth: u8, loader: Arc<L>, adapter: Arc<A>, js_runtime: Option<Runtime>, ) -> Self
pub fn handle<'life0, 'life_self, 'async_recursion>(
&'life_self self,
request: &'life0 NodeRequest<'_>,
) -> Pin<Box<dyn Future<Output = NodeResult> + 'async_recursion>>where
'life0: 'async_recursion,
'life_self: 'async_recursion,
Auto Trait Implementations§
impl<L, A> Freeze for DecisionHandler<L, A>
impl<L, A> !RefUnwindSafe for DecisionHandler<L, A>
impl<L, A> !Send for DecisionHandler<L, A>
impl<L, A> !Sync for DecisionHandler<L, A>
impl<L, A> Unpin for DecisionHandler<L, A>
impl<L, A> !UnwindSafe for DecisionHandler<L, A>
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
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>
Converts
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>
Converts
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